Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54828

Support building plugins with Java 11 and 17

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • plugin-pom

      Allow a plugin to compile and test successfully with the java.level property set to 11.

      As of Feb 8, 2022, when the java.level property is set to 11, the plugin compilation process fails with the message:

      [ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.22:test-hpl (default-test-hpl) on project platformlabeler: Unsupported Java version string: `1.11`. If you use Java 9 or above, see https://openjdk.java.net/jeps/223 -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      The maven hpi plugin will need to be extended to allow java.level to be set to 11.

            basil Basil Crow
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: