build.gradle.kts 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. plugins {
  2. id("otel.javaagent-testing")
  3. }
  4. dependencies {
  5. testInstrumentation(project(":instrumentation:http-url-connection:javaagent"))
  6. testImplementation("javax.ws.rs:javax.ws.rs-api:2.0.1")
  7. testLibrary("org.glassfish.jersey.core:jersey-client:2.0")
  8. testLibrary("org.jboss.resteasy:resteasy-client:3.0.5.Final")
  9. // ^ This version has timeouts https://issues.redhat.com/browse/RESTEASY-975
  10. testLibrary("org.apache.cxf:cxf-rt-rs-client:3.1.0")
  11. // Doesn't work with CXF 3.0.x because their context is wrong:
  12. // https://github.com/apache/cxf/commit/335c7bad2436f08d6d54180212df5a52157c9f21
  13. testImplementation("javax.xml.bind:jaxb-api:2.2.3")
  14. testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
  15. latestDepTestLibrary("org.glassfish.jersey.inject:jersey-hk2:2.+")
  16. latestDepTestLibrary("org.glassfish.jersey.core:jersey-client:2.+")
  17. latestDepTestLibrary("org.jboss.resteasy:resteasy-client:3.0.26.Final")
  18. latestDepTestLibrary("org.apache.cxf:cxf-rt-rs-client:3.+")
  19. }
  20. // Requires old Guava. Can't use enforcedPlatform since predates BOM
  21. configurations.testRuntimeClasspath.resolutionStrategy.force("com.google.guava:guava:19.0")
  22. tasks.withType<Test>().configureEach {
  23. // required on jdk17
  24. jvmArgs("--add-opens=java.base/java.net=ALL-UNNAMED")
  25. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  26. }