build.gradle.kts 1004 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. library("io.ratpack:ratpack-core:1.7.0")
  6. testImplementation(project(":instrumentation:ratpack:ratpack-1.4:testing"))
  7. testLibrary("io.ratpack:ratpack-test:1.7.0")
  8. testLibrary("io.ratpack:ratpack-guice:1.7.0")
  9. if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_11)) {
  10. testImplementation("com.sun.activation:jakarta.activation:1.2.2")
  11. }
  12. }
  13. tasks {
  14. val testStableSemconv by registering(Test::class) {
  15. filter {
  16. excludeTestsMatching("InstrumentedHttpClientTest")
  17. excludeTestsMatching("RatpackRoutesTest")
  18. excludeTestsMatching("RatpackServerApplicationTest")
  19. excludeTestsMatching("RatpackServerTest")
  20. }
  21. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  22. }
  23. withType<Test>().configureEach {
  24. // required on jdk17
  25. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  26. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  27. }
  28. check {
  29. dependsOn(testStableSemconv)
  30. }
  31. }