Skip to content

Commit

Permalink
[#1503] fix Gradle syntax for Java 18+ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Dec 7, 2021
1 parent 7135dd9 commit c8d9345
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ if (JavaVersion.current().isJava11Compatible()) {
apply from: "gradle/jacoco.gradle"
}

test { // https://github.com/remkop/picocli/issues/1503
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)()) {
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)()) {
// https://github.com/remkop/picocli/issues/1503
test { // explicitly enable security manager on Java 18 for System.exit tests
systemProperty "java.security.manager", "allow"
}
}
Expand Down

0 comments on commit c8d9345

Please sign in to comment.