Skip to content

Instantly share code, notes, and snippets.

@xinthink
Created November 15, 2017 01:26
Show Gist options
  • Save xinthink/34d04f46229b8e1913a9af3f67d1cf16 to your computer and use it in GitHub Desktop.
Save xinthink/34d04f46229b8e1913a9af3f67d1cf16 to your computer and use it in GitHub Desktop.
Dependency group operators definition
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)
}
@xinthink
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment