Skip to content

Instantly share code, notes, and snippets.

@eoinahern
Last active October 13, 2017 13:32
Show Gist options
  • Save eoinahern/d90e4c2e2d9baeef8aaa42343345029c to your computer and use it in GitHub Desktop.
Save eoinahern/d90e4c2e2d9baeef8aaa42343345029c to your computer and use it in GitHub Desktop.
my build.gradle dependencies after modification.
dependencies {
//resolve a dependency
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:25.3.0'
resolutionStrategy.force 'com.android.support:support-compat:25.3.0'
}
// App's dependencies, including test
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:design:$rootProject.supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
compile "com.android.support.test.espresso:espresso-idling-resource:$rootProject.espressoVersion"
compile "com.google.guava:guava:$rootProject.guavaVersion"
// Dependencies for local unit tests
testCompile "junit:junit:$rootProject.ext.junitVersion"
testCompile "org.mockito:mockito-all:$rootProject.ext.mockitoVersion"
testCompile "org.hamcrest:hamcrest-all:$rootProject.ext.hamcrestVersion"
// Android Testing Support Library's runner and rules
androidTestCompile "com.android.support.test:runner:$rootProject.ext.runnerVersion"
androidTestCompile "com.android.support.test:rules:$rootProject.ext.runnerVersion"
// Dependencies for Android unit tests
androidTestCompile "junit:junit:$rootProject.ext.junitVersion"
androidTestCompile "org.mockito:mockito-core:$rootProject.ext.mockitoVersion"
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
// exclude a dependency!!
androidTestCompile ("com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion") {
exclude group: 'com.google.code.findbugs', module:'jsr305'
}
androidTestCompile ("com.android.support.test.espresso:espresso-contrib:$rootProject.espressoVersion") {
exclude group: 'com.google.code.findbugs', module:'jsr305'
}
androidTestCompile ("com.android.support.test.espresso:espresso-intents:$rootProject.espressoVersion") {
exclude group: 'com.google.code.findbugs', module:'jsr305'
}
androidTestCompile "com.android.support:support-annotations:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:design:$rootProject.supportLibraryVersion"
//ButterKnife
compile "com.jakewharton:butterknife:$rootProject.butterKnifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterKnifeVersion"
//Dagger
compile "com.google.dagger:dagger-android:$rootProject.daggerVersion"
provided 'org.glassfish:javax.annotation:10.0-b28'
annotationProcessor "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"
//Rx
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.3'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment