build.gradle.kts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.jboss.resteasy")
  7. module.set("resteasy-core")
  8. versions.set("[6.0.0.Final,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. otelJava {
  13. minJavaVersionSupported.set(JavaVersion.VERSION_11)
  14. }
  15. dependencies {
  16. bootstrap(project(":instrumentation:jaxrs:jaxrs-common:bootstrap"))
  17. compileOnly("jakarta.ws.rs:jakarta.ws.rs-api:3.0.0")
  18. library("org.jboss.resteasy:resteasy-core:6.0.0.Final")
  19. implementation(project(":instrumentation:jaxrs:jaxrs-3.0:jaxrs-3.0-common:javaagent"))
  20. testInstrumentation(project(":instrumentation:jaxrs:jaxrs-3.0:jaxrs-3.0-annotations:javaagent"))
  21. testInstrumentation(project(":instrumentation:servlet:servlet-5.0:javaagent"))
  22. testImplementation(project(":instrumentation:jaxrs:jaxrs-3.0:jaxrs-3.0-common:testing"))
  23. testImplementation("org.eclipse.jetty:jetty-webapp:11.0.0")
  24. testLibrary("org.jboss.resteasy:resteasy-undertow:6.0.0.Final") {
  25. exclude("org.jboss.resteasy", "resteasy-client")
  26. }
  27. testLibrary("io.undertow:undertow-servlet-jakarta:2.2.17.Final")
  28. testLibrary("org.jboss.resteasy:resteasy-servlet-initializer:6.0.0.Final")
  29. }
  30. tasks {
  31. withType<Test>().configureEach {
  32. // TODO run tests both with and without experimental span attributes
  33. jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
  34. }
  35. }