build.gradle.kts 515 B

1234567891011121314151617181920
  1. plugins {
  2. id("otel.javaagent-testing")
  3. }
  4. dependencies {
  5. testInstrumentation(project(":instrumentation:executors:javaagent"))
  6. testCompileOnly(project(":instrumentation:executors:bootstrap"))
  7. testImplementation(project(":instrumentation:executors:testing"))
  8. }
  9. otelJava {
  10. minJavaVersionSupported.set(JavaVersion.VERSION_21)
  11. }
  12. tasks.withType<Test>().configureEach {
  13. // needed for VirtualThreadTest
  14. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  15. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  16. }