You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2023/01/09 17:07:00 UTC
[jira] [Commented] (OFBIZ-12733) Workarounds for running and testing OFBiz under JDK 17 and Gradle 7.6
[ https://issues.apache.org/jira/browse/OFBIZ-12733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656196#comment-17656196 ]
Jacques Le Roux commented on OFBIZ-12733:
-----------------------------------------
These workarounds are JDK 11 compatible. It's the 1st step before going on with JDK 17 and Gradle 7.6
> Workarounds for running and testing OFBiz under JDK 17 and Gradle 7.6
> ---------------------------------------------------------------------
>
> Key: OFBIZ-12733
> URL: https://issues.apache.org/jira/browse/OFBIZ-12733
> Project: OFBiz
> Issue Type: Task
> Components: Gradle
> Affects Versions: 22.01.01
> Environment: JDK 17 and at least Gradle 7.6
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Priority: Major
>
> To be able to run and test (integration) OFBiz under JDK 17 and Gradle 7.6 we need these workarounds in build.gradle:
> {code:java}
> --- a/build.gradle
> +++ b/build.gradle
> @@ -81,10 +81,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) {
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)