slachiewicz opened a new pull request, #609: URL: https://github.com/apache/maven-apache-parent/pull/609
Fixes #608. `maven.compiler.target` now defaults to `javaVersion`, `maven.compiler.source` and `maven.compiler.release` follow `target`, and the `jdk8` and `jdk9+` profiles are gone. A project that still sets `maven.compiler.target` keeps its level on JDK 9+ instead of being compiled for Java 8, and the toolchains caveat on the old profile (MNG-6943) disappears because both plugins gate `--release` on the tool's own version. **Blocked on two plugin releases.** javac and javadoc reject `--release 1.8`, so a project using that spelling fails loudly until maven-compiler-plugin ships codehaus-plexus/plexus-compiler#516 and maven-javadoc-plugin ships apache/maven-javadoc-plugin#1378 and this parent pins those versions. Keep as draft until then. Verified with a child project on JDK 25 against 40-SNAPSHOT, reading the javac command line: | child sets | javac gets | note | |---|---|---| | nothing | `--release 8` | `List.of()` rejected, API check kept | | `maven.compiler.target` 11 | `--release 11` | previously `--release 8` | | `javaVersion` 17 | `--release 17` | | | `maven.compiler.target` 1.8 | `--release 8` | only with the patched plexus-compiler; `release version 1.8 not supported` with 3.16.0 | | target 1.8 + `maven.compiler.testRelease` 17 | main `--release 8`, tests `--release 17` | | Not run: a JDK 8 build, no JDK 8 available here. That path relies on plexus-compiler and the javadoc mojo falling back to `-source`/`-target` below JDK 9, which is what the removed profile also assumed. *This change was created with AI assistance.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
