33 lines
971 B
Plaintext
33 lines
971 B
Plaintext
plugins {
|
|
id("otel.library-instrumentation")
|
|
}
|
|
|
|
dependencies {
|
|
library("org.apache.logging.log4j:log4j-core:2.17.0")
|
|
annotationProcessor("org.apache.logging.log4j:log4j-core:2.17.0")
|
|
|
|
implementation(project(":instrumentation:log4j:log4j-context-data:log4j-context-data-2.17:library-autoconfigure"))
|
|
|
|
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
|
|
testLibrary("com.lmax:disruptor:3.3.4")
|
|
|
|
if (findProperty("testLatestDeps") as Boolean) {
|
|
testCompileOnly("biz.aQute.bnd:biz.aQute.bnd.annotation:7.0.0")
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
withType<Test>().configureEach {
|
|
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
|
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
|
}
|
|
|
|
val testAsyncLogger by registering(Test::class) {
|
|
jvmArgs("-DLog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector")
|
|
}
|
|
|
|
check {
|
|
dependsOn(testAsyncLogger)
|
|
}
|
|
}
|