Skip to content

Commit a7193f9

Browse files
committed
build: Avoid further warnings when running with Java >= 19
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent fabdf49 commit a7193f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/src/main/kotlin/ort-kotlin-conventions.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ val globalJvmArgs by extra {
136136
add("--add-opens")
137137
add("java.base/sun.nio.ch=ALL-UNNAMED")
138138
}
139+
140+
// See https://openjdk.org/jeps/424.
141+
if (javaVersion.isCompatibleWith(JavaVersion.VERSION_19)) {
142+
add("--enable-native-access=ALL-UNNAMED")
143+
}
139144
}
140145
}
141146

0 commit comments

Comments
 (0)