build.gradle.kts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.jboss.logmanager")
  7. module.set("jboss-logmanager")
  8. versions.set("[1.1.0.GA,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("org.jboss.logmanager:jboss-logmanager:1.1.0.GA")
  14. compileOnly(project(":javaagent-bootstrap"))
  15. // ensure no cross interference
  16. testInstrumentation(project(":instrumentation:java-util-logging:javaagent"))
  17. testImplementation("org.awaitility:awaitility")
  18. }
  19. val latestDepTest = findProperty("testLatestDeps") as Boolean
  20. if (latestDepTest) {
  21. otelJava {
  22. minJavaVersionSupported.set(JavaVersion.VERSION_11)
  23. }
  24. }
  25. tasks.withType<Test>().configureEach {
  26. // TODO run tests both with and without experimental log attributes
  27. jvmArgs("-Dotel.instrumentation.jboss-logmanager.experimental.capture-mdc-attributes=*")
  28. jvmArgs("-Dotel.instrumentation.jboss-logmanager.experimental-log-attributes=true")
  29. jvmArgs("-Dotel.instrumentation.java-util-logging.experimental-log-attributes=true")
  30. }