build.gradle.kts 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. // Resteasy changes a class's package in 3.1.0 then moves it back in 3.5.0 and then moves it forward again in 4.0.0
  6. // so the jaxrs-2.0-resteasy-3.0 module applies to [3.0, 3.1) and [3.5, 4.0)
  7. // and the jaxrs-2.0-resteasy-3.1 module applies to [3.1, 3.5) and [4.0, )
  8. pass {
  9. group.set("org.jboss.resteasy")
  10. module.set("resteasy-jaxrs")
  11. versions.set("[3.0.0.Final,3.1.0.Final)")
  12. }
  13. pass {
  14. group.set("org.jboss.resteasy")
  15. module.set("resteasy-jaxrs")
  16. versions.set("[3.5.0.Final,4)")
  17. }
  18. fail {
  19. group.set("org.jboss.resteasy")
  20. module.set("resteasy-jaxrs")
  21. versions.set("(2.1.0.GA,3.0.0.Final)")
  22. // missing dependencies
  23. skip("2.3.10.Final")
  24. }
  25. fail {
  26. group.set("org.jboss.resteasy")
  27. module.set("resteasy-core")
  28. versions.set("[4.0.0.Final,)")
  29. }
  30. }
  31. dependencies {
  32. bootstrap(project(":instrumentation:jaxrs:jaxrs-common:bootstrap"))
  33. compileOnly("javax.ws.rs:javax.ws.rs-api:2.0")
  34. library("org.jboss.resteasy:resteasy-jaxrs:3.0.0.Final")
  35. implementation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-common:javaagent"))
  36. implementation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-resteasy-common:javaagent"))
  37. testInstrumentation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-annotations:javaagent"))
  38. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  39. testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
  40. testInstrumentation(project(":instrumentation:undertow-1.4:javaagent"))
  41. testImplementation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-common:testing"))
  42. testImplementation("org.eclipse.jetty:jetty-webapp:9.4.6.v20170531")
  43. testLibrary("org.jboss.resteasy:resteasy-undertow:3.0.4.Final") {
  44. exclude("org.jboss.resteasy", "resteasy-client")
  45. }
  46. testLibrary("io.undertow:undertow-servlet:1.4.28.Final")
  47. testLibrary("org.jboss.resteasy:resteasy-servlet-initializer:3.0.4.Final")
  48. latestDepTestLibrary("org.jboss.resteasy:resteasy-servlet-initializer:3.0.+") // see jaxrs-3.0-resteasy-3.1 module
  49. latestDepTestLibrary("org.jboss.resteasy:resteasy-jaxrs:3.0.+") // see jaxrs-3.0-resteasy-3.1 module
  50. latestDepTestLibrary("org.jboss.resteasy:resteasy-undertow:3.0.+") { // see jaxrs-3.0-resteasy-3.1 module
  51. exclude("org.jboss.resteasy", "resteasy-client")
  52. }
  53. latestDepTestLibrary("io.undertow:undertow-servlet:2.2.+") // 2.3 switches to Servlet 5 / Jakarta namespace
  54. }
  55. tasks {
  56. test {
  57. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  58. }
  59. withType<Test>().configureEach {
  60. // TODO run tests both with and without experimental span attributes
  61. jvmArgs("-Dotel.instrumentation.jaxrs.experimental-span-attributes=true")
  62. }
  63. }