Improve version comparison when number of version "segments" are different #45
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
Current implementation works best when versions have the same number of segments, e.g. 2.1.0 vs 2.0.0 and 1.5.0-SNAPSHOT vs 1.6.0-SNAPSHOT.
It works also when different number of segments when different segments are numeric, e.g. 1.0.0 vs 1.0.0.42.
It does NOT work so well right now when the last different segments are non-numeric, e.g. 1.0.0 vs 1.0.0-SNAPSHOT or 1.0.0-alpha. Currently, 1.0.0-SNAPSHOT and 1.0.0-alpha are considered higher versions than 1.0.0, which is not correct generally speaking.
Finally, it will not work very well comparing things like 1.0.0-alpha and 1.0.0-beta with 1.0.0.Final.
The text was updated successfully, but these errors were encountered: