build.gradle.kts 896 B

12345678910111213141516171819202122232425
  1. plugins {
  2. id("otel.javaagent-testing")
  3. }
  4. // separate testing module is needed, because presence of jboss-logmanager 2.1.6 or later
  5. // on the classpath causes the normal java.util.logging test to use it
  6. dependencies {
  7. compileOnly(project(":instrumentation:java-util-logging:shaded-stub-for-instrumenting"))
  8. compileOnly(project(":instrumentation-appender-api-internal"))
  9. testInstrumentation(project(":instrumentation:java-util-logging:javaagent"))
  10. // the JBoss instrumentation in this artifact is needed
  11. // for jboss-logmanager versions 1.1.0.GA through latest 2.x
  12. testLibrary("org.jboss.logmanager:jboss-logmanager:1.1.0.GA")
  13. testImplementation("org.awaitility:awaitility")
  14. }
  15. tasks.withType<Test>().configureEach {
  16. // TODO run tests both with and without experimental log attributes
  17. jvmArgs("-Dotel.instrumentation.java-util-logging.experimental-log-attributes=true")
  18. }