build.gradle.kts 704 B

12345678910111213141516171819202122
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. implementation(project(":instrumentation-appender-api-internal"))
  6. implementation(project(":instrumentation-appender-sdk-internal"))
  7. library("ch.qos.logback:logback-classic:0.9.16")
  8. latestDepTestLibrary("ch.qos.logback:logback-classic:1.2.+")
  9. testImplementation("io.opentelemetry:opentelemetry-sdk-logs")
  10. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  11. testImplementation("org.mockito:mockito-core")
  12. }
  13. tasks.withType<Test>().configureEach {
  14. // TODO run tests both with and without experimental log attributes
  15. jvmArgs("-Dotel.instrumentation.logback-appender.experimental.capture-mdc-attributes=*")
  16. }