Created
February 23, 2018 08:58
-
-
Save memfis19/f8f63fb15ab63f1ac7272dc9dbac4b83 to your computer and use it in GitHub Desktop.
Dependency plugin example.
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
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