Skip to content

Commit 26b30db

Browse files
Remove unused test dependencies and reduce scope to runtime if possible
Motivation: Reduce warnings produced by dependency-analysis-gradle-plugin for test dependencies. Modifications: - Remove unused test dependencies; - Reduce scope to runtime-only for some test dependencies; - Add exclude rules for false positives; Result: Less warnings for our dependencies.
1 parent c750d92 commit 26b30db

File tree

54 files changed

+211
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+211
-156
lines changed

build.gradle

+8-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ buildscript {
5858
apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-root"
5959

6060
// Unfortunately, we can not make this validation part of our servicetalk-gradle-plugin-internal because it requires
61-
// JDK11 while we build and package out plugin with JDK8.
61+
// JDK11 while we build and package our plugin with JDK8.
6262
if (JavaVersion.current().isJava11Compatible()) {
6363
apply plugin: "com.autonomousapps.dependency-analysis"
6464

@@ -67,6 +67,13 @@ if (JavaVersion.current().isJava11Compatible()) {
6767
all {
6868
onAny {
6969
severity("warn") // FIXME: switch to "fail" when all issues are addressed
70+
}
71+
onUnusedDependencies {
72+
// We use it for log4j2.xml configuration
73+
exclude(":servicetalk-test-resources")
74+
}
75+
onUsedTransitiveDependencies {
76+
// We import it as api dependency via :servicetalk-annotations
7077
exclude("com.google.code.findbugs:jsr305")
7178
}
7279
}

gradle.properties

-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,5 @@ spotbugsPluginVersion=5.0.13
9898
dependencyAnalysisPluginVersion=2.6.1
9999

100100
apacheDirectoryServerVersion=1.5.7
101-
commonsLangVersion=2.6
102101
grpcVersion=1.69.0
103-
javaxAnnotationsApiVersion=1.3.5
104102
jsonUnitVersion=2.40.1

servicetalk-benchmarks/build.gradle

+1-5
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@ dependencies {
2727
implementation project(":servicetalk-buffer-netty")
2828
implementation project(":servicetalk-concurrent-api")
2929
implementation project(":servicetalk-concurrent-api-internal")
30+
implementation project(":servicetalk-concurrent-internal")
3031
implementation project(":servicetalk-http-api")
3132
implementation project(":servicetalk-http-netty")
3233
implementation project(":servicetalk-transport-netty-internal")
3334
implementation project(":servicetalk-loadbalancer")
3435
implementation project(":servicetalk-data-jackson")
3536
implementation "io.netty:netty-codec-http"
3637
implementation "org.openjdk.jmh:jmh-core:$jmhCoreVersion"
37-
38-
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
39-
testImplementation project(":servicetalk-concurrent-internal")
40-
testImplementation project(":servicetalk-concurrent-api-internal")
41-
testImplementation project(":servicetalk-test-resources")
4238
}
4339

4440
jmh {

servicetalk-benchmarks/src/jmh/java/io/servicetalk/benchmark/concurrent/ConnectableBufferOutputStreamBenchmark.java

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
import java.io.IOException;
3939
import java.util.Random;
40+
import javax.annotation.Nullable;
4041

4142
import static io.servicetalk.buffer.netty.BufferAllocators.PREFER_HEAP_ALLOCATOR;
4243
import static io.servicetalk.concurrent.api.SourceAdapters.toSource;
@@ -109,6 +110,7 @@ public class ConnectableBufferOutputStreamBenchmark {
109110
byte[] data;
110111
ConnectableBufferOutputStream cbos;
111112
Publisher<Buffer> publisher;
113+
@Nullable
112114
Subscription subscription;
113115

114116
@Setup(Level.Iteration)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright © 2025 Apple Inc. and the ServiceTalk project authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
@ElementsAreNonnullByDefault
17+
package io.servicetalk.benchmark.concurrent;
18+
19+
import io.servicetalk.annotations.ElementsAreNonnullByDefault;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright © 2025 Apple Inc. and the ServiceTalk project authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
@ElementsAreNonnullByDefault
17+
package io.servicetalk.benchmark.http;
18+
19+
import io.servicetalk.annotations.ElementsAreNonnullByDefault;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright © 2025 Apple Inc. and the ServiceTalk project authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
@ElementsAreNonnullByDefault
17+
package io.servicetalk.benchmark.loadbalancer;
18+
19+
import io.servicetalk.annotations.ElementsAreNonnullByDefault;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright © 2025 Apple Inc. and the ServiceTalk project authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
@ElementsAreNonnullByDefault
17+
package io.servicetalk.benchmark;
18+
19+
import io.servicetalk.annotations.ElementsAreNonnullByDefault;

servicetalk-buffer-api/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ dependencies {
2323
testImplementation "org.junit.jupiter:junit-jupiter-api"
2424
testImplementation "org.junit.jupiter:junit-jupiter-params"
2525
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
26-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
2726

2827
testFixturesApi "org.hamcrest:hamcrest:$hamcrestVersion"
2928
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"

servicetalk-circuit-breaker-resilience4j/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ dependencies {
2424

2525
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
2626
testImplementation "org.junit.jupiter:junit-jupiter-api"
27-
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
2827
}

servicetalk-client-api-internal/build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ dependencies {
2727

2828
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
2929
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
30-
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
3130
testImplementation project(":servicetalk-test-resources")
3231
testImplementation "org.junit.jupiter:junit-jupiter-api"
33-
testImplementation "org.junit.jupiter:junit-jupiter-params"
3432
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
35-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
33+
34+
testRuntimeOnly testFixtures(project(":servicetalk-concurrent-internal"))
3635
}

servicetalk-client-api/build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ dependencies {
2626
implementation "org.slf4j:slf4j-api:$slf4jVersion"
2727

2828
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
29-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
30-
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
3129
testImplementation project(":servicetalk-concurrent-test-internal")
3230
testImplementation project(":servicetalk-test-resources")
3331
testImplementation "org.junit.jupiter:junit-jupiter-api"
34-
testImplementation "org.junit.jupiter:junit-jupiter-params"
3532
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
3633
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
34+
35+
testRuntimeOnly testFixtures(project(":servicetalk-concurrent-internal"))
3736
}

servicetalk-concurrent-api-test/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ dependencies {
3030
testImplementation project(":servicetalk-test-resources")
3131
testImplementation "org.junit.jupiter:junit-jupiter-api"
3232
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
33-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
3433
}

servicetalk-concurrent-api/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ dependencies {
3535
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
3636

3737
testFixturesImplementation platform("org.junit:junit-bom:$junit5Version")
38-
testFixturesImplementation testFixtures(project(":servicetalk-concurrent-internal"))
38+
testFixturesImplementation project(":servicetalk-concurrent-internal")
3939
testFixturesImplementation project(":servicetalk-utils-internal")
4040
testFixturesImplementation project(":servicetalk-concurrent-test-internal")
4141
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
4242
testFixturesImplementation "org.junit.jupiter:junit-jupiter-api"
4343
testFixturesImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
44-
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
4544
testFixturesImplementation "org.slf4j:slf4j-api:$slf4jVersion"
4645
}

servicetalk-concurrent-internal/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ dependencies {
3232
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
3333

3434
testFixturesImplementation platform("org.junit:junit-bom:$junit5Version")
35-
testFixturesImplementation project(":servicetalk-annotations")
3635
testFixturesImplementation "org.junit.jupiter:junit-jupiter-api"
3736
testFixturesImplementation "org.slf4j:slf4j-api:$slf4jVersion"
3837
}

servicetalk-data-jackson-jersey/build.gradle

+4-9
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,15 @@ dependencies {
3939
implementation "org.slf4j:slf4j-api:$slf4jVersion"
4040

4141
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
42-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
4342
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
44-
testImplementation testFixtures(project(":servicetalk-transport-netty-internal"))
4543
testImplementation testFixtures(project(":servicetalk-http-router-jersey"))
46-
testImplementation project(":servicetalk-http-netty")
47-
testImplementation project(":servicetalk-http-router-predicate")
4844
testImplementation project(":servicetalk-test-resources")
49-
testImplementation project(":servicetalk-transport-netty-internal")
5045
testImplementation "org.junit.jupiter:junit-jupiter-api"
5146
testImplementation "org.junit.jupiter:junit-jupiter-params"
5247
testImplementation "org.junit.platform:junit-platform-suite-api:$junitPlatformVersion"
53-
testImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
54-
testImplementation "org.glassfish.jersey.inject:jersey-hk2"
55-
testImplementation "org.glassfish.jersey.media:jersey-media-sse"
5648
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
57-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
49+
testImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
50+
51+
testRuntimeOnly "org.glassfish.jersey.inject:jersey-hk2"
52+
testRuntimeOnly "org.glassfish.jersey.media:jersey-media-sse"
5853
}

servicetalk-data-jackson-jersey3-jakarta10/build.gradle

+4-9
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,15 @@ dependencies {
9999
implementation "org.slf4j:slf4j-api:$slf4jVersion"
100100

101101
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
102-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
103102
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
104-
testImplementation testFixtures(project(":servicetalk-transport-netty-internal"))
105103
testImplementation testFixtures(project(":servicetalk-http-router-jersey3-jakarta10"))
106-
testImplementation project(":servicetalk-http-netty")
107-
testImplementation project(":servicetalk-http-router-predicate")
108104
testImplementation project(":servicetalk-test-resources")
109-
testImplementation project(":servicetalk-transport-netty-internal")
110105
testImplementation "org.junit.jupiter:junit-jupiter-api"
111106
testImplementation "org.junit.jupiter:junit-jupiter-params"
112107
testImplementation "org.junit.platform:junit-platform-suite-api:$junitPlatformVersion"
113-
testImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
114-
testImplementation "org.glassfish.jersey.inject:jersey-hk2"
115-
testImplementation "org.glassfish.jersey.media:jersey-media-sse"
116108
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
117-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
109+
testImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
110+
111+
testRuntimeOnly "org.glassfish.jersey.inject:jersey-hk2"
112+
testRuntimeOnly "org.glassfish.jersey.media:jersey-media-sse"
118113
}

servicetalk-data-jackson-jersey3-jakarta9/build.gradle

+4-9
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,15 @@ dependencies {
9999
implementation "org.slf4j:slf4j-api:$slf4jVersion"
100100

101101
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
102-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
103102
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
104-
testImplementation testFixtures(project(":servicetalk-transport-netty-internal"))
105103
testImplementation testFixtures(project(":servicetalk-http-router-jersey3-jakarta9"))
106-
testImplementation project(":servicetalk-http-netty")
107-
testImplementation project(":servicetalk-http-router-predicate")
108104
testImplementation project(":servicetalk-test-resources")
109-
testImplementation project(":servicetalk-transport-netty-internal")
110105
testImplementation "org.junit.jupiter:junit-jupiter-api"
111106
testImplementation "org.junit.jupiter:junit-jupiter-params"
112107
testImplementation "org.junit.platform:junit-platform-suite-api:$junitPlatformVersion"
113-
testImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
114-
testImplementation "org.glassfish.jersey.inject:jersey-hk2"
115-
testImplementation "org.glassfish.jersey.media:jersey-media-sse"
116108
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
117-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
109+
testImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
110+
111+
testRuntimeOnly "org.glassfish.jersey.inject:jersey-hk2"
112+
testRuntimeOnly "org.glassfish.jersey.media:jersey-media-sse"
118113
}

servicetalk-data-jackson/build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ dependencies {
2929
implementation "org.slf4j:slf4j-api:$slf4jVersion"
3030

3131
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
32-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
33-
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
3432
testImplementation project(":servicetalk-test-resources")
3533
testImplementation project(":servicetalk-buffer-netty")
3634
testImplementation "org.junit.jupiter:junit-jupiter-api"
3735
testImplementation "org.junit.jupiter:junit-jupiter-params"
3836
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
39-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
37+
38+
testRuntimeOnly testFixtures(project(":servicetalk-concurrent-internal"))
4039
}

servicetalk-data-protobuf-jersey/build.gradle

+5-10
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,18 @@ dependencies {
4848
implementation "org.slf4j:slf4j-api:$slf4jVersion"
4949

5050
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
51-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
5251
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
53-
testImplementation testFixtures(project(":servicetalk-transport-netty-internal"))
5452
testImplementation testFixtures(project(":servicetalk-http-router-jersey"))
55-
testImplementation project(":servicetalk-http-netty")
56-
testImplementation project(":servicetalk-http-router-predicate")
5753
testImplementation project(":servicetalk-test-resources")
58-
testImplementation project(":servicetalk-transport-netty-internal")
59-
// BaseJerseyRouterTestSuite assumes JSON serialization is supported.
60-
testImplementation project(":servicetalk-data-jackson-jersey")
6154
testImplementation "org.junit.jupiter:junit-jupiter-api"
6255
testImplementation "org.junit.jupiter:junit-jupiter-params"
6356
testImplementation "org.junit.platform:junit-platform-suite-api:$junitPlatformVersion"
64-
testImplementation "org.glassfish.jersey.inject:jersey-hk2"
65-
testImplementation "org.glassfish.jersey.media:jersey-media-sse"
6657
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
67-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
58+
59+
// BaseJerseyRouterTestSuite assumes JSON serialization is supported.
60+
testRuntimeOnly project(":servicetalk-data-jackson-jersey")
61+
testRuntimeOnly "org.glassfish.jersey.inject:jersey-hk2"
62+
testRuntimeOnly "org.glassfish.jersey.media:jersey-media-sse"
6863
}
6964

7065
protobuf {

servicetalk-data-protobuf-jersey3-jakarta10/build.gradle

+5-10
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,18 @@ dependencies {
109109
implementation "org.slf4j:slf4j-api:$slf4jVersion"
110110

111111
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
112-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
113112
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
114-
testImplementation testFixtures(project(":servicetalk-transport-netty-internal"))
115113
testImplementation testFixtures(project(":servicetalk-http-router-jersey3-jakarta10"))
116-
testImplementation project(":servicetalk-http-netty")
117-
testImplementation project(":servicetalk-http-router-predicate")
118114
testImplementation project(":servicetalk-test-resources")
119-
testImplementation project(":servicetalk-transport-netty-internal")
120-
// BaseJerseyRouterTestSuite assumes JSON serialization is supported.
121-
testImplementation project(":servicetalk-data-jackson-jersey3-jakarta10")
122115
testImplementation "org.junit.jupiter:junit-jupiter-api"
123116
testImplementation "org.junit.jupiter:junit-jupiter-params"
124117
testImplementation "org.junit.platform:junit-platform-suite-api:$junitPlatformVersion"
125-
testImplementation "org.glassfish.jersey.inject:jersey-hk2"
126-
testImplementation "org.glassfish.jersey.media:jersey-media-sse"
127118
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
128-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
119+
120+
// BaseJerseyRouterTestSuite assumes JSON serialization is supported.
121+
testRuntimeOnly project(":servicetalk-data-jackson-jersey3-jakarta10")
122+
testRuntimeOnly "org.glassfish.jersey.inject:jersey-hk2"
123+
testRuntimeOnly "org.glassfish.jersey.media:jersey-media-sse"
129124
}
130125

131126
protobuf {

servicetalk-data-protobuf-jersey3-jakarta9/build.gradle

+5-10
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,18 @@ dependencies {
114114
implementation "org.slf4j:slf4j-api:$slf4jVersion"
115115

116116
testImplementation enforcedPlatform("org.junit:junit-bom:$junit5Version")
117-
testImplementation testFixtures(project(":servicetalk-concurrent-api"))
118117
testImplementation testFixtures(project(":servicetalk-concurrent-internal"))
119-
testImplementation testFixtures(project(":servicetalk-transport-netty-internal"))
120118
testImplementation testFixtures(project(":servicetalk-http-router-jersey3-jakarta9"))
121-
testImplementation project(":servicetalk-http-netty")
122-
testImplementation project(":servicetalk-http-router-predicate")
123119
testImplementation project(":servicetalk-test-resources")
124-
testImplementation project(":servicetalk-transport-netty-internal")
125-
// BaseJerseyRouterTestSuite assumes JSON serialization is supported.
126-
testImplementation project(":servicetalk-data-jackson-jersey3-jakarta9")
127120
testImplementation "org.junit.jupiter:junit-jupiter-api"
128121
testImplementation "org.junit.jupiter:junit-jupiter-params"
129122
testImplementation "org.junit.platform:junit-platform-suite-api:$junitPlatformVersion"
130-
testImplementation "org.glassfish.jersey.inject:jersey-hk2"
131-
testImplementation "org.glassfish.jersey.media:jersey-media-sse"
132123
testImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
133-
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
124+
125+
// BaseJerseyRouterTestSuite assumes JSON serialization is supported.
126+
testRuntimeOnly project(":servicetalk-data-jackson-jersey3-jakarta9")
127+
testRuntimeOnly "org.glassfish.jersey.inject:jersey-hk2"
128+
testRuntimeOnly "org.glassfish.jersey.media:jersey-media-sse"
134129
}
135130

136131
protobuf {

0 commit comments

Comments
 (0)