From 2639834436f5f49f1d29f65427678da964d33570 Mon Sep 17 00:00:00 2001 From: Chao Zhang Date: Sat, 6 Jun 2020 15:21:00 -0700 Subject: [PATCH] Change mockito dependency to api So that consumers do not need to declare mockito dependency specifically. --- dexmaker-mockito-inline-extended/build.gradle | 2 +- dexmaker-mockito-inline/build.gradle | 2 +- dexmaker-mockito/build.gradle | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dexmaker-mockito-inline-extended/build.gradle b/dexmaker-mockito-inline-extended/build.gradle index 123a76e..0f15f9a 100644 --- a/dexmaker-mockito-inline-extended/build.gradle +++ b/dexmaker-mockito-inline-extended/build.gradle @@ -48,5 +48,5 @@ tasks.withType(JavaCompile) { dependencies { implementation project(':dexmaker-mockito-inline') - implementation 'org.mockito:mockito-core:2.28.2', { exclude group: 'net.bytebuddy' } + api 'org.mockito:mockito-core:2.28.2', { exclude group: 'net.bytebuddy' } } diff --git a/dexmaker-mockito-inline/build.gradle b/dexmaker-mockito-inline/build.gradle index f665ff2..7234804 100644 --- a/dexmaker-mockito-inline/build.gradle +++ b/dexmaker-mockito-inline/build.gradle @@ -43,5 +43,5 @@ tasks.withType(JavaCompile) { dependencies { implementation project(':dexmaker') - implementation 'org.mockito:mockito-core:2.28.2', { exclude group: 'net.bytebuddy' } + api 'org.mockito:mockito-core:2.28.2', { exclude group: 'net.bytebuddy' } } diff --git a/dexmaker-mockito/build.gradle b/dexmaker-mockito/build.gradle index 2a3f80e..b652afc 100644 --- a/dexmaker-mockito/build.gradle +++ b/dexmaker-mockito/build.gradle @@ -1,7 +1,7 @@ plugins { id("net.ltgt.errorprone") version "0.8" } -apply plugin: 'java' +apply plugin: 'java-library' apply from: "$rootDir/gradle/publishing.gradle" version = VERSION_NAME @@ -21,5 +21,5 @@ tasks.withType(JavaCompile) { dependencies { implementation project(':dexmaker') - implementation 'org.mockito:mockito-core:2.28.2', { exclude group: 'net.bytebuddy' } + api 'org.mockito:mockito-core:2.28.2', { exclude group: 'net.bytebuddy' } }