This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1cb94978c9 fix build for JDK24+
1cb94978c9 is described below

commit 1cb94978c94b0ada0120b17e1313fe73c3d84221
Author: Paul King <[email protected]>
AuthorDate: Sat Apr 4 04:50:06 2026 +1000

    fix build for JDK24+
---
 subprojects/groovy-ant/build.gradle | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/subprojects/groovy-ant/build.gradle 
b/subprojects/groovy-ant/build.gradle
index 075ca433d7..52257844d4 100644
--- a/subprojects/groovy-ant/build.gradle
+++ b/subprojects/groovy-ant/build.gradle
@@ -41,5 +41,8 @@ dependencies {
 }
 
 tasks.withType(Test).configureEach {
-    jvmArgs '-Djava.security.manager=allow'
+    if (JavaVersion.current() < JavaVersion.VERSION_24) {
+        // Setting isn't allowed for Java 24+ but hushes security manager 
warnings from Ant for JDK17-23
+        jvmArgs '-Djava.security.manager=allow'
+    }
 }

Reply via email to