We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb8748b commit 8c9c084Copy full SHA for 8c9c084
conventions/src/main/kotlin/otel.java-conventions.gradle.kts
@@ -80,7 +80,8 @@ tasks.withType<JavaCompile>().configureEach {
80
)
81
82
val defaultJavaVersion = otelJava.maxJavaVersionSupported.getOrElse(DEFAULT_JAVA_VERSION).majorVersion.toInt()
83
- if (Math.max(otelJava.minJavaVersionSupported.get().majorVersion.toInt(), defaultJavaVersion) >= 21) {
+ if (Math.max(otelJava.minJavaVersionSupported.get().majorVersion.toInt(), defaultJavaVersion) >= 21 &&
84
+ "graalvm" !in System.getProperty("java.vendor").lowercase()) {
85
// new warning in jdk21
86
compilerArgs.add("-Xlint:-this-escape")
87
}
0 commit comments