Skip to content

Commit cba53fe

Browse files
committed
Use wiremock-jre8-standalone to remove Jetty transitive dependency
1 parent 63fa670 commit cba53fe

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

httpClient/build.gradle

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,5 @@ repositories {
88

99
dependencies {
1010
testImplementation group: 'org.testng', name: 'testng', version: '7.5.1'
11-
testImplementation group: 'org.wiremock', name: 'wiremock', version: '3.12.1'
11+
testImplementation group: 'com.github.tomakehurst', name: 'wiremock-jre8-standalone', version: '2.35.2'
1212
}
13-
14-
// wiremock 3.x requires Java 11+; override test classpath attributes so Gradle
15-
// resolves it correctly while keeping production code at Java 8
16-
configurations {
17-
testCompileClasspath {
18-
attributes {
19-
attribute(Attribute.of("org.gradle.jvm.version", Integer), 11)
20-
}
21-
}
22-
testRuntimeClasspath {
23-
attributes {
24-
attribute(Attribute.of("org.gradle.jvm.version", Integer), 11)
25-
}
26-
}
27-
}

0 commit comments

Comments
 (0)