Fix log4j-appender-2.17 latest dep tests (#9915)

This commit is contained in:
Lauri Tulmin 2023-11-21 01:35:37 +02:00 committed by GitHub
parent b85e883ada
commit cafbcfc198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -22,9 +22,10 @@ dependencies {
testImplementation("org.awaitility:awaitility")
// this dependency is needed for the slf4j->log4j test
if (testLatestDeps) {
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0")
// this dependency is needed for the slf4j->log4j test
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:+")
testCompileOnly("biz.aQute.bnd:biz.aQute.bnd.annotation:7.0.0")
} else {
// log4j 2.17 doesn't have an slf4j2 bridge
testImplementation("org.apache.logging.log4j:log4j-slf4j-impl:2.17.0")

View File

@ -6,4 +6,8 @@ dependencies {
library("org.apache.logging.log4j:log4j-core:2.17.0")
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
if (findProperty("testLatestDeps") as Boolean) {
testCompileOnly("biz.aQute.bnd:biz.aQute.bnd.annotation:7.0.0")
}
}