Skip to content

Commit 961b36a

Browse files
Rework #10551 to properly align Java 21+ modules with the latest Logback version.
1 parent 5209bc5 commit 961b36a

4 files changed

Lines changed: 10 additions & 21 deletions

File tree

dd-java-agent/instrumentation/java/java-concurrent/java-concurrent-21.0/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,9 @@ tasks.named("check") {
4747
dependsOn "previewTest"
4848
}
4949

50-
// Use latest logback for Java 21+ tests with better virtual thread support.
51-
configurations.named("testRuntimeClasspath") {
52-
resolutionStrategy {
53-
force libs.logback.classic.latest
54-
}
55-
}
56-
5750
dependencies {
51+
// Use latest logback for Java 21+ tests with better virtual thread support.
52+
testImplementation(libs.logback.classic.latest)
53+
5854
testImplementation project(':dd-java-agent:instrumentation:datadog:tracing:trace-annotation')
5955
}

dd-java-agent/instrumentation/java/java-concurrent/java-concurrent-25.0/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ idea {
1616
}
1717
}
1818

19-
// Use latest logback for Java 21+ tests with better virtual thread support.
20-
configurations.named("testRuntimeClasspath") {
21-
resolutionStrategy {
22-
force libs.logback.classic.latest
23-
}
19+
dependencies {
20+
// Use latest logback for Java 21+ tests with better virtual thread support.
21+
testImplementation(libs.logback.classic.latest)
2422
}

dd-java-agent/instrumentation/java/java-lang/java-lang-21.0/build.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@ tasks.named("compileTestJava", JavaCompile) {
2626
}
2727

2828
dependencies {
29-
testImplementation project(':dd-java-agent:instrumentation:datadog:tracing:trace-annotation')
30-
}
29+
// Use latest logback for Java 21+ tests with better virtual thread support.
30+
testImplementation(libs.logback.classic.latest)
3131

32-
// Use latest logback for Java 21+ tests with better virtual thread support.
33-
configurations.named("testRuntimeClasspath") {
34-
resolutionStrategy {
35-
force libs.logback.classic.latest
36-
}
32+
testImplementation project(':dd-java-agent:instrumentation:datadog:tracing:trace-annotation')
3733
}
38-

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ lz4 = "1.7.1"
5757
# Logging
5858
slf4j = "1.7.30"
5959
logback = "1.2.13" # required by Java 8 modules.
60-
logback-latest = "1.5.27" # recommended for Java 11+ modules.
60+
logback-latest = "1.5.28" # recommended for Java 11+ modules.
6161

6262
# JSON
6363
jackson = "2.20.0"

0 commit comments

Comments
 (0)