Skip to content

Commit e58a3c9

Browse files
committed
make testCompile extend from compileOnly
1 parent 7c8e2ba commit e58a3c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ repositories {
2626
jcenter()
2727
}
2828

29+
configurations {
30+
testCompile.extendsFrom compileOnly
31+
}
32+
2933
dependencies {
3034
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
3135
implementation 'com.google.guava:guava:29.0-jre'
@@ -40,8 +44,6 @@ dependencies {
4044
// https://mvnrepository.com/artifact/org.mockito/mockito-core
4145
testImplementation 'org.mockito:mockito-core:3.5.13'
4246
testImplementation 'org.hamcrest:hamcrest:2.2'
43-
// https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5
44-
testCompile group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: '5.0.2'
4547

4648
// Lombok
4749
compileOnly 'org.projectlombok:lombok:1.18.12'

0 commit comments

Comments
 (0)