From b96801a90ff68a13244644f64598acd9eeed4909 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 21 Aug 2020 09:30:13 +0200 Subject: [PATCH] use same version for all org.mockito releases Signed-off-by: tobiasKaminsky --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index b40162b932ba..acc262555382 100644 --- a/build.gradle +++ b/build.gradle @@ -64,6 +64,7 @@ ext { prismVersion = "2.0.0" butterknifeVersion = "10.2.3" androidLibraryVersion = "master-SNAPSHOT" + mockitoVersion = "3.5.7" travisBuild = System.getenv("TRAVIS") == "true" @@ -74,6 +75,7 @@ ext { repositories { google() jcenter() + maven { url "https://jitpack.io" } maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } @@ -352,7 +354,7 @@ dependencies { // dependencies for local unit tests testImplementation 'junit:junit:4.13' - testImplementation 'org.mockito:mockito-core:3.4.6' + testImplementation "org.mockito:mockito-core:$mockitoVersion" testImplementation 'androidx.test:core:1.3.0' testImplementation 'org.powermock:powermock-core:2.0.7' testImplementation 'org.powermock:powermock-module-junit4:2.0.7' @@ -379,8 +381,8 @@ dependencies { // Mocking support androidTestImplementation 'com.github.tmurakami:dexopener:2.0.5' // required to allow mocking on API 27 and older androidTestImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0" - androidTestImplementation 'org.mockito:mockito-core:3.4.4' - androidTestImplementation("org.mockito:mockito-android:3.5.3") { + androidTestImplementation "org.mockito:mockito-core:$mockitoVersion" + androidTestImplementation("org.mockito:mockito-android:$mockitoVersion") { exclude group: "net.bytebuddy", module: "byte-buddy-android" } androidTestImplementation 'net.bytebuddy:byte-buddy:1.10.14'