Skip to content

Instantly share code, notes, and snippets.

@memfis19
Created February 23, 2018 08:58
Show Gist options
  • Save memfis19/f8f63fb15ab63f1ac7272dc9dbac4b83 to your computer and use it in GitHub Desktop.
Save memfis19/f8f63fb15ab63f1ac7272dc9dbac4b83 to your computer and use it in GitHub Desktop.
Dependency plugin example.
const val rxJavaVersion = "2.1.9"
const val rxKotlinVersion = "2.2.0"
object dependencies {
val rx = mapOf(
"rxJava" to "io.reactivex.rxjava2:rxjava:${rxJavaVersion}",
"rxKotlin" to "io.reactivex.rxjava2:rxkotlin:${rxKotlinVersion}"
)
}
class DependenciesPlugin : Plugin<Project> {
override fun apply(project: Project) {
project.extensions.add("deps", dependencies)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment