diff --git a/gradle.properties b/gradle.properties index 1ddbebf8ae..377e2dfe38 100644 --- a/gradle.properties +++ b/gradle.properties @@ -66,6 +66,7 @@ AUTO_SERVICE_VERSION=1.0-rc3 DAGGER_VERSION=2.15 ERROR_PRONE_PLUGIN_VERSION=0.0.13 ERROR_PRONE_VERSION=2.3.1 +GUAVA_TESTLIB_VERSION=18.0 GUAVA_VERSION=28.1-android JAVAPOET_VERSION=1.9.0 JSR_305_VERSION=3.0.2 diff --git a/library/build.gradle b/library/build.gradle index b8dd99192e..2114e30fcf 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -24,7 +24,7 @@ dependencies { testImplementation "androidx.appcompat:appcompat:${ANDROID_X_APPCOMPAT_VERSION}" testImplementation project(':testutil') - testImplementation 'com.google.guava:guava-testlib:18.0' + testImplementation "com.google.guava:guava-testlib:${GUAVA_TESTLIB_VERSION}" testImplementation "com.google.truth:truth:${TRUTH_VERSION}" testImplementation "junit:junit:${JUNIT_VERSION}" testImplementation "org.mockito:mockito-core:${MOCKITO_VERSION}" diff --git a/library/test/build.gradle b/library/test/build.gradle index ee7acf4a56..3143e95dc2 100644 --- a/library/test/build.gradle +++ b/library/test/build.gradle @@ -5,7 +5,7 @@ dependencies { testImplementation project(':library') testImplementation project(':mocks') testImplementation project(':testutil') - testImplementation 'com.google.guava:guava-testlib:18.0' + testImplementation "com.google.guava:guava-testlib:${GUAVA_TESTLIB_VERSION}" testImplementation "com.google.truth:truth:${TRUTH_VERSION}" testImplementation "junit:junit:${JUNIT_VERSION}" testImplementation "org.mockito:mockito-core:${MOCKITO_VERSION}" diff --git a/third_party/disklrucache/build.gradle b/third_party/disklrucache/build.gradle index 0fb8d75c09..a98a84db45 100644 --- a/third_party/disklrucache/build.gradle +++ b/third_party/disklrucache/build.gradle @@ -1,9 +1,5 @@ apply plugin: 'com.android.library' -repositories { - jcenter() -} - checkstyle { toolVersion = "6.6" } @@ -13,8 +9,7 @@ checkstyle { } dependencies { - def junitVersion = hasProperty('JUNIT_VERSION') ? JUNIT_VERSION : '4.13.2'; - testImplementation "junit:junit:${junitVersion}" + testImplementation "junit:junit:${JUNIT_VERSION}" testImplementation "com.google.truth:truth:${TRUTH_VERSION}" }