Repository navigation
Conversation
|
Reviewed commit a7d0f62. The Java 21 compiler configuration, JaCoCo update, CI workflows and README changes look sound, but the artifact version needs to change before merging. [P1] Move the artifact to Verification on this commit:
Please move this change to the 2.0.0 version line and coordinate downstream Java 21 upgrades before consumers adopt it. If ECL 1.10.0 is still intended for Java 11 consumers, preserve that release first. |
…7-build-and-target-java-21 # Conflicts: # .github/workflows/publish.yml
Merge prerequisites — on hold
Keep this PR in draft while MDM is not ready for Java 21. This is the agreed hold for the coordinated migration.
MDM currently targets Java 11 and already consumes EXT
2.0.0-SNAPSHOT, Analyzer1.16.0-SNAPSHOTand Notice Viewer0.14.0-SNAPSHOT. Avoid publishing Java 21 replacements for those active coordinates before MDM is ready. ECL uses the new2.0.0-SNAPSHOTcoordinate; holding ECL too is part of the agreed rollout sequence.After the hold is lifted: ECL → EXT → Analyzer and Notice Viewer (either order) → CLI after Notice Viewer. Wait for successful upstream snapshot publication and downstream verification between dependent merges.
Summary
Moves the library from Java 11 to Java 21. Build configuration and CI only —
no source changes were needed, the existing sources compile unchanged.
pom.xml:java.version11 → 21;maven.compiler.source/targetreplacedby
maven.compiler.release, which also rejects references to APIs newer thanthe target
pom.xml: pinnedmaven-compiler-plugininpluginManagement(theversion.compiler.pluginproperty existed but was wired to no plugin, so theversion was floating); JaCoCo 0.8.10 → 0.8.12 for Java 21 bytecode
java-version: 21in the three workflows, anddistribution: adopt→temurinsinceadoptis deprecated and publishes no Java 21 buildsTested
mvn clean installon Temurin 21.0.12 — compiled atrelease 21, 99/99 testsgreen, jar built.
japicmp could not be run locally: it fetched an EU Login HTML page instead of
the baseline jar through the corporate proxy, so the run used
-Djapicmp.skip=true. The API-compatibility check needs to pass in CI here.Note for reviewers
This raises the bytecode level of a published artifact, so every consumer must
be on Java 21 before taking the release — a major-version change under semver.
Jira targets ECL 2.0.0 for that reason.
A stale
origin/java21branch (June 2025) reached the same pom conclusionsindependently; it predates a year of develop and should probably be deleted.
It also bumps
maven-source-pluginto 3.3.1, which this branch does not.Jira: TEDEFO-5287