Skip to content

Instantly share code, notes, and snippets.

@memfis19
Created February 23, 2018 09:46
Show Gist options
  • Save memfis19/ae2eb78c6b7899343e8bf021550c8344 to your computer and use it in GitHub Desktop.
Save memfis19/ae2eb78c6b7899343e8bf021550c8344 to your computer and use it in GitHub Desktop.
buildscript {
ext.kotlin_version = '1.2.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "your.dependency:module:x.y.z"
}
}
import your.dependecy.Dependecy
dependency {
implementation Dependency.Rx.rxJava
implementation Dependency.Rx.rxKotlin
}
package your.dependency
interface Dependecy {
interface Rx {
String rxJava = "io.reactivex.rxjava2:rxjava:${rxJavaVersion}";
String rxKotlin = "io.reactivex.rxjava2:rxkotlin:${rxKotlinVersion}";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment