From 71a49a066d0722dfe4ee5b894b2429b4f86a01b9 Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 17 Nov 2021 14:46:46 -0800 Subject: [PATCH] Add test JVM options to configure (enable) Apache Geode to run on Java 17. --- .../spring-session-data-geode.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spring-session-data-geode/spring-session-data-geode.gradle b/spring-session-data-geode/spring-session-data-geode.gradle index 989b3ec..6dd28a9 100644 --- a/spring-session-data-geode/spring-session-data-geode.gradle +++ b/spring-session-data-geode/spring-session-data-geode.gradle @@ -42,8 +42,15 @@ dependencies { } +def jvmArgList = [ + "--add-opens", "java.base/java.nio=ALL-UNNAMED", + "--add-opens", "java.base/java.util=ALL-UNNAMED" +] + test { + jvmArgs jvmArgList + maxHeapSize = project.hasProperty("test.jvm.heap.max-size") ? project.getProperty("test.jvm.heap.max-size") : "512m" @@ -56,6 +63,8 @@ test { integrationTest { + jvmArgs jvmArgList + maxHeapSize = project.hasProperty("test.jvm.heap.max-size") ? project.getProperty("test.jvm.heap.max-size") : "2g"