This version is identical to version 31, except that it requires a JDK 9+ as the system JDK (the JDK that runs maven). If the build can not be run on JDK 9+, basepom 31 has identical functionality. It no longer supports the toolchain plugin.
Changed
- Requires JDK 9+ as the system JDK. Most important change is switching from
<source>
and<target>
for the compiler plugin to<release>
. This switch, which is only available in JDK 9+, allows correct compilation for all older versions of Java (6, 7, 8 etc.) without the need to provide a bootclasspath or the toolchain plugin. The resulting binaries will still be compatible with the given JDK (JDK 11, the current LTS version) supports 6 - 11. - The values supported by the
project.build.targetJdk
have changed. 1.6, 1.7, 1.8 are no longer supported; the value must now be a single number (6 - the version of the current system JDK). Default is now8
(was1.8
). - A new property
project.build.systemJdk
has been introduced. This specifies the minimal version (enforced by the enforcer) for the JDK that runs maven. The default is9
.
Removed
- The toolchain plugin has been removed.