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

benw pushed a commit to branch gradle-improvements
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit d81808aaa96e43996f80ed68fb8faaeaceb39869
Author: Ben Weidig <[email protected]>
AuthorDate: Sun Aug 24 12:01:27 2025 +0200

    tapestry-ioc-jcache: try to make it work with Java 21
---
 tapestry-ioc-jcache/build.gradle | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tapestry-ioc-jcache/build.gradle b/tapestry-ioc-jcache/build.gradle
index cd0277613..72ead87c6 100644
--- a/tapestry-ioc-jcache/build.gradle
+++ b/tapestry-ioc-jcache/build.gradle
@@ -28,3 +28,15 @@ tasks.named('jar', Jar) {
         attributes 'Tapestry-Module-Classes': 
'org.apache.tapestry5.jcache.module.JCacheModule'
     }
 }
+
+
+test {
+    if (JavaVersion.current().isJava9Compatible()) {
+            jvmArgs '--add-opens', 'java.base/java.util=ALL-UNNAMED'
+            jvmArgs '--add-opens', 'java.base/java.util.concurrent=ALL-UNNAMED'
+            jvmArgs '--add-opens', 'java.base/java.io=ALL-UNNAMED'
+            jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
+            jvmArgs '--add-opens', 'java.base/java.lang.invoke=ALL-UNNAMED'
+            jvmArgs '--add-opens', 'java.base/java.lang.reflect=ALL-UNNAMED'
+    }
+}
\ No newline at end of file

Reply via email to