Created
November 15, 2017 01:42
-
-
Save xinthink/4b04c489db2dbc1909ab0bd86596262c to your computer and use it in GitHub Desktop.
Hook dependencies extension to ExtraProperties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val ExtraPropertiesExtension.deps: DependencyGroup | |
get() = | |
if (has("deps")) this["deps"] as DependencyGroup | |
else DependencyGroup().apply { | |
this@deps["deps"] = this | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For article: Defining Dependencies in Gradle Kotlin DS