plugins { id("otel.library-instrumentation") } dependencies { implementation("io.opentelemetry:opentelemetry-api-logs") // pin the version strictly to avoid overriding by dependencyManagement versions compileOnly("ch.qos.logback:logback-classic") { version { strictly("1.0.0") } } compileOnly("org.slf4j:slf4j-api") { version { strictly("1.6.4") } } if (findProperty("testLatestDeps") as Boolean) { testImplementation("ch.qos.logback:logback-classic:+") } else { testImplementation("ch.qos.logback:logback-classic") { version { strictly("1.0.0") } } testImplementation("org.slf4j:slf4j-api") { version { strictly("1.6.4") } } } testImplementation("io.opentelemetry:opentelemetry-sdk-logs") testImplementation("io.opentelemetry:opentelemetry-sdk-testing") }