Skip to content

Commit

Permalink
fix undertow testLatestDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
shalk committed Sep 30, 2024
1 parent 4b80db4 commit da11947
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion instrumentation/undertow-1.4/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ dependencies {
}

tasks.withType<Test>().configureEach {
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
}

// since 2.3.x, undertow is compiled by JDK 11
val latestDepTest = findProperty("testLatestDeps") as Boolean
if (latestDepTest) {
tasks.withType<JavaCompile>().configureEach {
options.release.set(11)
}
}

0 comments on commit da11947

Please sign in to comment.