build.gradle.kts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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,4)")
  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:jaxrs:jaxrs-2.0:jaxrs-2.0-annotations:javaagent"))
  28. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  29. testInstrumentation(project(":instrumentation:jetty:jetty-8.0:javaagent"))
  30. testImplementation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-common:testing"))
  31. testImplementation("javax.xml.bind:jaxb-api:2.2.3")
  32. testImplementation("org.eclipse.jetty:jetty-webapp:9.4.6.v20170531")
  33. testLibrary("org.apache.cxf:cxf-rt-transports-http-jetty:3.2.0")
  34. testLibrary("org.apache.cxf:cxf-rt-ws-policy:3.2.0")
  35. latestDepTestLibrary("org.eclipse.jetty:jetty-webapp:9.+")
  36. latestDepTestLibrary("org.apache.cxf:cxf-rt-frontend-jaxrs:3.+")
  37. latestDepTestLibrary("org.apache.cxf:cxf-rt-transports-http-jetty:3.+")
  38. latestDepTestLibrary("org.apache.cxf:cxf-rt-ws-policy:3.+")
  39. }
  40. tasks.withType<Test>().configureEach {
  41. // TODO run tests both with and without experimental span attributes
  42. jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
  43. }