Skip to content

Commit e4f3bc5

Browse files
[release/v1.32.x] Fix log4j-appender-2.17 latest dep tests (#10583)
Co-authored-by: Lauri Tulmin <[email protected]>
1 parent 946dcb8 commit e4f3bc5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

instrumentation/log4j/log4j-appender-2.17/javaagent/build.gradle.kts

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ dependencies {
2222

2323
testImplementation("org.awaitility:awaitility")
2424

25-
// this dependency is needed for the slf4j->log4j test
2625
if (testLatestDeps) {
27-
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0")
26+
// this dependency is needed for the slf4j->log4j test
27+
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:+")
28+
testCompileOnly("biz.aQute.bnd:biz.aQute.bnd.annotation:7.0.0")
2829
} else {
2930
// log4j 2.17 doesn't have an slf4j2 bridge
3031
testImplementation("org.apache.logging.log4j:log4j-slf4j-impl:2.17.0")

instrumentation/log4j/log4j-appender-2.17/library/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ dependencies {
66
library("org.apache.logging.log4j:log4j-core:2.17.0")
77

88
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
9+
10+
if (findProperty("testLatestDeps") as Boolean) {
11+
testCompileOnly("biz.aQute.bnd:biz.aQute.bnd.annotation:7.0.0")
12+
}
913
}

0 commit comments

Comments
 (0)