build.gradle.kts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.glassfish.grizzly")
  7. module.set("grizzly-http")
  8. versions.set("[2.0,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. compileOnly("org.glassfish.grizzly:grizzly-http:2.0")
  14. bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
  15. testImplementation("javax.xml.bind:jaxb-api:2.2.3")
  16. testImplementation("javax.ws.rs:javax.ws.rs-api:2.0")
  17. testLibrary("org.glassfish.jersey.containers:jersey-container-grizzly2-http:2.0")
  18. latestDepTestLibrary("org.glassfish.jersey.containers:jersey-container-grizzly2-http:2.+")
  19. latestDepTestLibrary("org.glassfish.jersey.inject:jersey-hk2:2.+")
  20. }
  21. tasks.withType<Test>().configureEach {
  22. jvmArgs("-Dotel.instrumentation.grizzly.enabled=true")
  23. // required on jdk17
  24. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  25. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  26. }
  27. // Requires old Guava. Can't use enforcedPlatform since predates BOM
  28. configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.google.guava:guava:19.0")