Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-11197

Support JDK 22

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-3, 4.0.16
    • None
    • None

    Description

      With JDK 22-ea and the following declaration:

            <plugin>
              <groupId>org.codehaus.gmavenplus</groupId>
              <artifactId>gmavenplus-plugin</artifactId>
              <version>3.0.2</version>
              <dependencies>
                <dependency>
                  <groupId>org.apache.groovy</groupId>
                  <artifactId>groovy-ant</artifactId>
                  <version>4.0.15</version>
                </dependency>
              </dependencies>
            </plugin>
      

      the Maven build process fails with message:

      Error:  Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:3.0.2:execute (default) on project syncope: Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 66 -> [Help 1]
      

      Attachments

        Activity

          People

            paulk Paul King
            ilgrosso Francesco Chicchiriccò
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: