Skip to content

Commit 1cb9497

Browse files
committed
fix build for JDK24+
1 parent 252bdc6 commit 1cb9497

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

subprojects/groovy-ant/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ dependencies {
4141
}
4242

4343
tasks.withType(Test).configureEach {
44-
jvmArgs '-Djava.security.manager=allow'
44+
if (JavaVersion.current() < JavaVersion.VERSION_24) {
45+
// Setting isn't allowed for Java 24+ but hushes security manager warnings from Ant for JDK17-23
46+
jvmArgs '-Djava.security.manager=allow'
47+
}
4548
}

0 commit comments

Comments
 (0)