Description
Elliotte Rusty Harold opened MRESOLVER-677 and commented
ComparableVersion in core, maven resolver, and probably a few other places have independent code to parse and compare version numbers.
The test cases should be pulled out into a data document that is independent of the test suite or even language. That is, just a bunch of text (likely JSON or XML but maybe CSV for ease of JUnit integration) with two versions and the expected result. Then this can be loaded by the different version parsing libraries, perhaps including non-Maven things like Gradle and semver.
Use a parameterized test in JUnit 5 to pull in the test cases.
Fix any discrepancies between the independent code paths, and update docs as necessary.
No further details from MRESOLVER-677