build.gradle.kts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("javax.ws.rs")
  7. module.set("javax.ws.rs-api")
  8. versions.set("[2.0,)")
  9. }
  10. pass {
  11. // We want to support the dropwizard clients too.
  12. group.set("io.dropwizard")
  13. module.set("dropwizard-client")
  14. versions.set("[0.8.0,)")
  15. assertInverse.set(true)
  16. }
  17. }
  18. dependencies {
  19. compileOnly("javax.ws.rs:javax.ws.rs-api:2.0.1")
  20. compileOnly("javax.annotation:javax.annotation-api:1.3.2")
  21. testInstrumentation(project(":instrumentation:jaxrs-client:jaxrs-client-2.0:jaxrs-client-2.0-cxf-3.0:javaagent"))
  22. testInstrumentation(project(":instrumentation:jaxrs-client:jaxrs-client-2.0:jaxrs-client-2.0-jersey-2.0:javaagent"))
  23. testInstrumentation(project(":instrumentation:jaxrs-client:jaxrs-client-2.0:jaxrs-client-2.0-resteasy-3.0:javaagent"))
  24. testImplementation("javax.ws.rs:javax.ws.rs-api:2.0.1")
  25. testLibrary("org.glassfish.jersey.core:jersey-client:2.0")
  26. testLibrary("org.jboss.resteasy:resteasy-client:3.0.5.Final")
  27. // ^ This version has timeouts https://issues.redhat.com/browse/RESTEASY-975
  28. testLibrary("org.apache.cxf:cxf-rt-rs-client:3.1.0")
  29. // Doesn't work with CXF 3.0.x because their context is wrong:
  30. // https://github.com/apache/cxf/commit/335c7bad2436f08d6d54180212df5a52157c9f21
  31. testImplementation("javax.xml.bind:jaxb-api:2.2.3")
  32. testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
  33. latestDepTestLibrary("org.glassfish.jersey.inject:jersey-hk2:2.+")
  34. latestDepTestLibrary("org.glassfish.jersey.core:jersey-client:2.+")
  35. latestDepTestLibrary("org.jboss.resteasy:resteasy-client:3.0.26.Final")
  36. }
  37. // Requires old Guava. Can't use enforcedPlatform since predates BOM
  38. configurations.testRuntimeClasspath.resolutionStrategy.force("com.google.guava:guava:19.0")