Release 4.40 of the plugin parent POM
<https://github.com/jenkinsci/plugin-pom/releases/tag/plugin-4.40> features
build toolchain support for Java 17 when running on Jenkins 2.341 or later.

Please begin testing your plugins on Java 17 by taking the following
actions:

   1. Upgrade to release 4.40 or later of the plugin parent POM.
   2. Delete <java.level>8</java.level> from your plugin POM.
   3. Update your Jenkinsfile to include a test run on Jenkins 2.341 or
   later and Java 17.

See jenkinsci/email-ext-plugin#357
<https://github.com/jenkinsci/email-ext-plugin/pull/357> and
jenkinsci/timestamper-plugin#167
<https://github.com/jenkinsci/timestamper-plugin/pull/167> for examples.

The java.level property has been deprecated and should be removed from your
plugin's POM. In the future this warning will be changed to an error and
will break the build.

The addition of @{jenkins.addOpens} and @{jenkins.insaneHook} to argLine
exposes a bug in IntelliJ IDEA. A patch has been merged in
JetBrains/intellij-community#1976
<https://github.com/JetBrains/intellij-community/pull/1976>. Pending the
release of this patch, IntelliJ IDEA users should work around the problem
as follows:

   1. Go to *Settings* > *Build, Execution, Deployment* > *Build Tools* >
   *Maven* > *Running Tests*.
   2. Under "Pass to JUnit process [the] following maven-surefire-plugin
   and maven-failsafe-plugin settings", uncheck argLine.

Failure to work around the problem as described above will result in a could
not open '{jenkins.addOpens}' failure when running tests in IntelliJ IDEA.

Also note that the workaround does not suffice for Java 17 support. For
Java 17 support in IntelliJ IDEA, we must wait for the release of
JetBrains/intellij-community#1976
<https://github.com/JetBrains/intellij-community/pull/1976>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAFwNDjqnFh_9e792L%3DyaACrgh1EqecbBWEi7zZV6brw8sbsy1Q%40mail.gmail.com.

Reply via email to