Skip to content

-jdk… suffixes considered problematic for version and upgrade automation #1917

Description

@odrotbohm

The non-standard -jdk… suffixes on some artifacts cause a bit of havoc for tools that apply standard Maven version comparisons as they consider the suffixed variant a newer version than the one without the suffix. Tools that rely on that comparison will now (suggest to) upgrade from 1.8.10 to 1.8.10-jdk5, which is unlikely what you want by default.

Sample output of a mvn versions:display-property-updates from a project that depends on 1.8.10 currently:

…
[INFO] --- versions:2.21.0:display-property-updates (default-cli) @ jmolecules-integrations ---
[INFO] 
[INFO] The following version properties are referencing the newest available version:
[INFO]   ${axon.version} .............................................. 4.13.1
[INFO] The following version property updates are available:
[INFO]   ${bytebuddy.version} ........................ 1.18.10 -> 1.18.10-jdk5
…

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions