This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch release22.01 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push: new b9b9f52b5f Improved: Workarounds for running and testing OFBiz under JDK 17 and Gradle 7.6 (OFBIZ-12733) b9b9f52b5f is described below commit b9b9f52b5fb407f443c8725fe5f1e4e7e3b165d7 Author: Jacques Le Roux <jacques.le.r...@les7arts.com> AuthorDate: Mon Jan 9 17:59:17 2023 +0100 Improved: Workarounds for running and testing OFBiz under JDK 17 and Gradle 7.6 (OFBIZ-12733) To be able to run and test (integration) OFBiz under JDK 17 and Gradle 7.6 we need these workarounds in build.gradle --- build.gradle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ed7a2de8d0..d9d8ac5f1f 100644 --- a/build.gradle +++ b/build.gradle @@ -80,10 +80,13 @@ ext.pluginsDir = "${rootDir}/plugins" application { mainClassName = 'org.apache.ofbiz.base.start.Start' - // jdk.serialFilter is to "Prevent possible DOS attack done using Java deserialisation" (OFBIZ-12592) applicationDefaultJvmArgs = project.hasProperty('jvmArgs') ? jvmArgs.tokenize() - : ['-Xms128M','-Xmx1024M','-Djdk.serialFilter=maxarray=100000;maxdepth=20;maxrefs=1000;maxbytes=500000'] + : ['-Xms128M','-Xmx1024M', + '-Djdk.serialFilter=maxarray=100000;maxdepth=20;maxrefs=1000;maxbytes=500000', // OFBIZ-12592 and OFBIZ-12716 + '--add-exports=java.base/sun.util.calendar=ALL-UNNAMED', // OFBIZ-12721 + '--add-opens=java.base/java.util=ALL-UNNAMED' // OFBIZ-12726 + ] } distributions.main.contents.from(rootDir) {