ppkarwasz opened a new pull request, #731: URL: https://github.com/apache/commons-parent/pull/731
The JDK-activated profiles were chaotic: inconsistent names, overlapping ranges, and in some cases a newer JDK ran an older version of a Maven plugin than an older JDK did (for example, spdx-maven-plugin 0.5.5 on Java 11–16 but 0.6.3 on Java 8). This PR uses two kinds of profiles: - `java-N-up` adds configuration only understood by Java N and later. - `java-below-N` downgrades plugins and dependencies that require Java N. The top-level properties always hold the newest versions, which is also the value Dependabot updates. Profiles used by other Commons projects (`java-9-up`, `java-21-up`, `java-1.8`, `java-1.11`) keep their names. Apart from the patch updates to spotbugs-maven-plugin (4.8.6.8) and spdx-maven-plugin (0.6.5), the effective POM is unchanged on Java 8, 11, 17, 21 and 27. What should go in `java-below-N` profiles: - **Plugins:** downgrades are mostly harmless, since release artifacts are built with a recent JDK anyway. - **Test dependencies:** more sensitive, because the tests only run on JDK N in builds that use JDK N (we don't use toolchains for the test suite). - **Runtime dependencies:** never, otherwise dependency resolution would depend on the JDK running Maven instead of the target runtime version. AI disclosure: written with Claude Code (Claude Opus 5.5) under my direction. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
