Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12400 Upgrade to gradle 7.6 - support JDK 11 -> 17
  3. OFBIZ-12733

Workarounds for running and testing OFBiz under JDK 17 and Gradle 7.6

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 22.01.01
    • 22.01.01
    • Gradle
    • None
    • JDK 17 and at least Gradle 7.6

    Description

      To be able to run and test (integration) OFBiz under JDK 17 and Gradle 7.6 we need these workarounds in build.gradle:

      --- 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) {
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment