Created
November 15, 2017 01:26
-
-
Save xinthink/34d04f46229b8e1913a9af3f67d1cf16 to your computer and use it in GitHub Desktop.
Dependency group operators definition
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
class DependencyGroup { | |
// provides the `.``[]` operators | |
operator fun get(key: String): DependencyItem | |
// provides the `<key>(<notation>)` syntax | |
operator fun String.invoke(notation: String) | |
// provides the `<key> {<group>}` syntax | |
operator fun String.invoke(init: DependencyGroup.() -> Unit) | |
} |
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