Created
August 31, 2017 07:42
-
-
Save vtthach/bef6c5fca2b4af22809d0be41a740f44 to your computer and use it in GitHub Desktop.
Sample group of dependencies : i.e librarires.dagger
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
allprojects { | |
repositories { | |
jcenter() | |
} | |
} | |
ext { | |
//Android | |
androidBuildToolsVersion = "26.0.1" | |
androidMinSdkVersion = 15 | |
androidTargetSdkVersion = 25 | |
androidCompileSdkVersion = 25 | |
//Libraries | |
daggerVersion = '2.9' | |
butterKnifeVersion = '8.7.0' | |
butterKnifeCompiler = '8.7.0' | |
recyclerViewVersion = '23.4.0' | |
rxJavaVersion = '1.1.6' | |
rxAndroidVersion = '2.0.1' | |
javaxAnnotationVersion = '1.0' | |
gsonVersion = '2.7' | |
okHttpVersion = '3.3.1' | |
androidAnnotationsVersion = '23.1.1' | |
retrofitVersion = '2.3.0' | |
retrofitJsonConverterVersion = '2.3.0' | |
retrofitRxjavaVersion = '2.3.0' | |
caligraphyVersion = '2.1.0' | |
materialDialogVersion = '0.8.5.3' | |
timberVersion = '4.1.2' | |
supportLibraryVersion = '23.2.1' | |
playServiceVersion = "8.3.0" | |
//Testing | |
jUnitVersion = '4.12' | |
assertJVersion = '1.7.1' | |
mockitoVersion = '1.10.19' | |
dexmakerVersion = '1.4' | |
robolectricVersion = '3.0' | |
testingSupportLibVersion = '0.1' | |
testRunnerVersion = '0.4' | |
hamcrestVersion = '1.1' | |
presentationDependencies = [ | |
supportLibrary : "com.android.support:appcompat-v7:${supportLibraryVersion}", | |
supportAnnotations : "com.android.support:support-annotations:${androidAnnotationsVersion}", | |
playService : "com.google.android.gms:play-services-vision:${playServiceVersion}", | |
daggerCompiler : "com.google.dagger:dagger-compiler:${daggerVersion}", | |
dagger : "com.google.dagger:dagger:${daggerVersion}", | |
butterKnife : "com.jakewharton:butterknife:${butterKnifeVersion}", | |
butterKnifeCompiler : "com.jakewharton:butterknife-compiler:${butterKnifeCompiler}", | |
recyclerView : "com.android.support:recyclerview-v7:${recyclerViewVersion}", | |
gson : "com.google.code.gson:gson:${gsonVersion}", | |
rxJava : "io.reactivex:rxjava:${rxJavaVersion}", | |
rxAndroid : "io.reactivex.rxjava2:rxandroid:${rxAndroidVersion}", | |
javaxAnnotation : "javax.annotation:jsr250-api:${javaxAnnotationVersion}", | |
retrofit : "com.squareup.retrofit2:retrofit:${retrofitVersion}", | |
retrofitJsonConverter: "com.squareup.retrofit2:converter-gson:${retrofitJsonConverterVersion}", | |
retrofitRxjava : "com.squareup.retrofit2:adapter-rxjava:${retrofitRxjavaVersion}", | |
okHttp : "com.squareup.okhttp3:okhttp:${okHttpVersion}", | |
okHttpInterceptor : "com.squareup.okhttp3:logging-interceptor:${okHttpVersion}", | |
timber : "com.jakewharton.timber:timber:${timberVersion}", | |
caligraphy : "uk.co.chrisjenx:calligraphy:${caligraphyVersion}", | |
materialDialog : "com.github.afollestad.material-dialogs:core:${materialDialogVersion}" | |
] | |
presentationTestDependencies = [ | |
junit : "junit:junit:${jUnitVersion}", | |
assertj : "org.assertj:assertj-core:${assertJVersion}", | |
mockito : "org.mockito:mockito-core:${mockitoVersion}", | |
powermockJunit : "org.powermock:powermock-module-junit4:1.6.5", | |
powermockMockito : "org.powermock:powermock-api-mockito:1.6.6", | |
robolectric : "org.robolectric:robolectric:${robolectricVersion}", | |
rxJava : "io.reactivex:rxjava:${rxJavaVersion}", | |
testingSupportLib : "com.android.support.test:testing-support-lib:${testingSupportLibVersion}", | |
dexmaker : "com.google.dexmaker:dexmaker:${dexmakerVersion}", | |
dexmakerMockito : "com.google.dexmaker:dexmaker-mockito:${dexmakerVersion}", | |
hamcrestCore : "org.hamcrest:hamcrest-core:${hamcrestVersion}", | |
hamcrestLibrary : "org.hamcrest:hamcrest-library:${hamcrestVersion}", | |
hamcrestIntegration: "org.hamcrest:hamcrest-integration:${hamcrestVersion}" | |
] | |
libraries = [ | |
dagger: [ // Groovy list literal | |
dependencies.create("com.google.dagger:dagger-compiler:${daggerVersion}") { | |
exclude(group: 'javax.inject', module: 'javax.inject') | |
}, | |
"com.google.dagger:dagger:${daggerVersion}", | |
"javax.annotation:jsr250-api:${javaxAnnotationVersion}" | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment