Skip to content

Commit

Permalink
[#1503] only set sysprop "java.security.manager=allow" in Gradle buil…
Browse files Browse the repository at this point in the history
…d for Java 18+
  • Loading branch information
remkop committed Dec 7, 2021
1 parent 5d7ccc2 commit 7135dd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ if (JavaVersion.current().isJava11Compatible()) {
}

test { // https://github.com/remkop/picocli/issues/1503
systemProperty "java.security.manager", "allow"
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)()) {
systemProperty "java.security.manager", "allow"
}
}

// javadoc and asciidoc customization
Expand Down

0 comments on commit 7135dd9

Please sign in to comment.