build.gradle.kts 740 B

1234567891011121314151617181920
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. library("io.projectreactor:reactor-core:3.1.0.RELEASE")
  6. implementation(project(":instrumentation-api-annotation-support"))
  7. testLibrary("io.projectreactor:reactor-test:3.1.0.RELEASE")
  8. testImplementation(project(":instrumentation:reactor:reactor-3.1:testing"))
  9. // Looks like later versions on reactor need this dependency for some reason even though it is marked as optional.
  10. latestDepTestLibrary("io.micrometer:micrometer-core:1.+")
  11. }
  12. tasks.withType<Test>().configureEach {
  13. // required on jdk17, uses spock Mock that needs access to jdk internals
  14. jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED")
  15. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  16. }