Skip to content

Conversation

@andrzejj0
Copy link
Contributor

@andrzejj0 andrzejj0 commented Sep 29, 2025

Now this is a "business" kind of bug and I am surprised that this hasn't come up before. Dependencies, Plugins, etc, all use regular lexicographic comparison to order versions (where this is done by the plugin and not Resolver) whereas it should use semantic versioning (for example GenericVersion from Resolver).

I guess this hasn't been noticed because most people don't have any strange versioning schemes, but I have added some unit tests which break with regular string comparison (e.g. 1.0 should be equivalent to 1.0.0, etc.).

@andrzejj0 andrzejj0 self-assigned this Sep 29, 2025
@andrzejj0 andrzejj0 added the bug label Sep 29, 2025
@andrzejj0 andrzejj0 merged commit 4e0b6fd into mojohaus:master Sep 30, 2025
26 checks passed
@andrzejj0 andrzejj0 deleted the fix-comparators branch September 30, 2025 06:58
@github-actions github-actions bot added this to the 2.19.2 milestone Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants