Skip to content

Commit

Permalink
Fixes #15
Browse files Browse the repository at this point in the history
Restrict the range of JVM versions that need security manager flags
  • Loading branch information
sstults committed Sep 12, 2024
1 parent 4308757 commit a1a3aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ githubRelease.doFirst {
}

tasks.withType(Test).configureEach { task ->
if (JavaVersion.current().compareTo(JavaVersion.VERSION_17) > 0) {
if (JavaVersion.current().compareTo(JavaVersion.VERSION_17) > 0 && JavaVersion.current().compareTo(JavaVersion.VERSION_21) < 0) {
def policyFile = file("${projectDir}/src/main/plugin-metadata/plugin-security.policy").absolutePath
task.jvmArgs += [
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
Expand Down

0 comments on commit a1a3aa9

Please sign in to comment.