build.gradle.kts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. // Cant assert fails because muzzle assumes all instrumentations will fail
  6. // Instrumentations in jaxrs-2.0-common will pass
  7. pass {
  8. group.set("org.apache.cxf")
  9. module.set("cxf-rt-frontend-jaxrs")
  10. versions.set("[3.2,)")
  11. extraDependency("javax.servlet:javax.servlet-api:3.1.0")
  12. }
  13. pass {
  14. group.set("org.apache.tomee")
  15. module.set("openejb-cxf-rs")
  16. // earlier versions of tomee use cxf older than 3.2
  17. versions.set("(8,)")
  18. extraDependency("javax.servlet:javax.servlet-api:3.1.0")
  19. }
  20. }
  21. dependencies {
  22. bootstrap(project(":instrumentation:jaxrs:jaxrs-common:bootstrap"))
  23. compileOnly("javax.ws.rs:javax.ws.rs-api:2.0")
  24. compileOnly("javax.servlet:javax.servlet-api:3.1.0")
  25. library("org.apache.cxf:cxf-rt-frontend-jaxrs:3.2.0")
  26. implementation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-common:javaagent"))
  27. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  28. testInstrumentation(project(":instrumentation:jetty:jetty-8.0:javaagent"))
  29. testImplementation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-common:testing"))
  30. testImplementation("javax.xml.bind:jaxb-api:2.2.3")
  31. testImplementation("org.eclipse.jetty:jetty-webapp:9.4.6.v20170531")
  32. testLibrary("org.apache.cxf:cxf-rt-transports-http-jetty:3.2.0")
  33. testLibrary("org.apache.cxf:cxf-rt-ws-policy:3.2.0")
  34. latestDepTestLibrary("org.eclipse.jetty:jetty-webapp:9.+")
  35. }
  36. tasks.withType<Test>().configureEach {
  37. // TODO run tests both with and without experimental span attributes
  38. jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
  39. }