build.gradle.kts 515 B

123456789101112131415161718
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. library("org.apache.logging.log4j:log4j-core:2.17.0")
  6. annotationProcessor("org.apache.logging.log4j:log4j-core:2.17.0")
  7. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  8. if (findProperty("testLatestDeps") as Boolean) {
  9. testCompileOnly("biz.aQute.bnd:biz.aQute.bnd.annotation:7.0.0")
  10. }
  11. }
  12. tasks.withType<Test>().configureEach {
  13. jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
  14. }