build.gradle.kts 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("ch.qos.logback")
  7. module.set("logback-classic")
  8. versions.set("[0.9.16,)")
  9. skip("0.9.6") // has dependency on SNAPSHOT org.slf4j:slf4j-api:1.4.0-SNAPSHOT
  10. skip("0.8") // has dependency on non-existent org.slf4j:slf4j-api:1.1.0-RC0
  11. skip("0.6") // has dependency on pom only javax.jms:jms:1.1
  12. assertInverse.set(true)
  13. }
  14. }
  15. dependencies {
  16. library("ch.qos.logback:logback-classic:0.9.16")
  17. compileOnly(project(":instrumentation-appender-api-internal"))
  18. compileOnly(project(":javaagent-bootstrap"))
  19. implementation(project(":instrumentation:logback:logback-appender-1.0:library"))
  20. testImplementation("org.awaitility:awaitility")
  21. }
  22. tasks.withType<Test>().configureEach {
  23. // TODO run tests both with and without experimental log attributes
  24. jvmArgs("-Dotel.instrumentation.logback-appender.experimental.capture-mdc-attributes=*")
  25. jvmArgs("-Dotel.instrumentation.logback-appender.experimental-log-attributes=true")
  26. }