build.gradle.kts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.apache.axis2")
  7. module.set("axis2-jaxws")
  8. versions.set("[1.6.0,)")
  9. assertInverse.set(true)
  10. // version 1.2 depends on org.apache.axis2:axis2-kernel:1.2
  11. // which depends on org.apache.neethi:neethi:2.0.1 which does not exist
  12. // version 1.3 depends on org.apache.axis2:axis2-kernel:1.3
  13. // which depends on org.apache.woden:woden:1.0-incubating-M7b which does not exist
  14. skip("1.2", "1.3")
  15. }
  16. }
  17. configurations.configureEach {
  18. if (name.contains("test")) {
  19. // axis has a dependency on servlet2 api, get rid of it - otherwise the servlet3 instrumentation
  20. // will fail during tests
  21. exclude("javax.servlet", "servlet-api")
  22. }
  23. }
  24. dependencies {
  25. bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
  26. val axis2Version = "1.6.0"
  27. library("org.apache.axis2:axis2-jaxws:$axis2Version")
  28. testLibrary("org.apache.axis2:axis2-transport-http:$axis2Version")
  29. testLibrary("org.apache.axis2:axis2-transport-local:$axis2Version")
  30. testImplementation(project(":instrumentation:jaxws:jaxws-2.0-common-testing"))
  31. testInstrumentation(project(":instrumentation:jaxws:jaxws-2.0:javaagent"))
  32. testInstrumentation(project(":instrumentation:jaxws:jaxws-jws-api-1.1:javaagent"))
  33. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  34. testInstrumentation(project(":instrumentation:jetty:jetty-8.0:javaagent"))
  35. testImplementation("javax.xml.bind:jaxb-api:2.2.11")
  36. testImplementation("com.sun.xml.bind:jaxb-core:2.2.11")
  37. testImplementation("com.sun.xml.bind:jaxb-impl:2.2.11")
  38. testImplementation("com.sun.xml.ws:jaxws-rt:2.2.8")
  39. testImplementation("com.sun.xml.ws:jaxws-tools:2.2.8")
  40. }
  41. tasks.withType<Test>().configureEach {
  42. // required on jdk17
  43. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  44. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  45. }