4.40
π Major features and improvements
This release of the plugin build toolchain contains support for Java 17 when running on Jenkins 2.341 or later. (#525, #524, #529) @basil
Please begin testing your plugins on Java 17 by taking the following actions:
- Upgrade to this release 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.
β οΈ Deprecated
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. (#522) @basil
π₯ Breaking changes
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:
- Go to Settings > Build, Execution, Deployment > Build Tools > Maven > Running Tests.
- Under "Pass to JUnit process [the] following
maven-surefire-plugin
andmaven-failsafe-plugin
settings", uncheckargLine
.
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.
π¦ Dependency updates
- Bump Jenkins Test Harness from 1723.vcd938b_e66072 to 1736.vc72c458c5103 (#537, #527) @dependabot
- Bump JaCoCo Maven Plugin from 0.8.7 to 0.8.8 (#536) @dependabot
- Bump Maven Clean Plugin from 3.1.0 to 3.2.0 (#535) @dependabot
- Bump Maven Failsafe Plugin from 3.0.0-M4 to 3.0.0-M6 (#532) @dependabot
- Bump Maven Surefire Plugin from 3.0.0-M4 to 3.0.0-M6 (#533) @dependabot
- Bump Maven HPI Plugin from 3.26 to 3.27 (#528) @dependabot
π» Maintenance
- Remove unneeded SUREFIRE-1226 workaround (#534) @timja
- Setting
source
andtarget
are unnecessary when settingrelease
(#530) @basil - JENKINS-54842: Use Java 9+ built-in functionality instead of Animal Sniffer (#523) @basil