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. Pending the release of this patch, IntelliJ IDEA users should work around the problem as follows:
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.
Release 4.40 of the plugin parent POM 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:
- Upgrade to release 4.40 or later of the plugin parent POM.
- Delete <java.level>8</java.level> from your plugin POM.
- Update your Jenkinsfile to include a test run on Jenkins 2.341 or later and Java 17.
See jenkinsci/email-ext-plugin#357 and jenkinsci/timestamper-plugin#167 for examples.