You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: maven-resolver-util/src/main/java/org/eclipse/aether/util/version/package-info.java
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -42,18 +42,20 @@
42
42
* <li>"alpha" (== "a" when immediately followed by number)</li>
43
43
* <li>"beta" (== "b" when immediately followed by number)</li>
44
44
* <li>"milestone" (== "m" when immediately followed by number)</li>
45
-
* <li>"rc" == "cr" (use of "cr" is discouraged)</li>
45
+
* <li>"pr" = "pre" = "preview" (use is discouraged)</li>
46
+
* <li>"rc" == "cr" (use of "cr" is discouraged, use rc instead)</li>
47
+
* <li>"dev" (use is discouraged)</li>
46
48
* <li>"snapshot"</li>
47
-
* <li>"ga" == "final" == "release"</li>
48
-
* <li>"sp"</li>
49
+
* <li>"final" == "ga" == "release" (use is discouraged, use no qualifier instead)</li>
50
+
* <li>"sp" (use of "sp" is discouraged, increment patch version instead)</li>
49
51
* </ul>
50
52
* </li>
51
53
* <li>String segments are sorted lexicographically and case-insensitively per ROOT locale, ascending.</li>
52
54
* <li>There are two special segments, {@code "min"} and {@code "max"} that represent absolute minimum and absolute maximum in comparisons. They can be used only as the trailing segment.</li>
53
55
* <li>As last step, trailing "zero segments" are trimmed. Similarly, "zero segments" positioned before numeric and non-numeric transitions (either explicitly or implicitly delimited) are trimmed.</li>
54
-
* <li>When trimming, "zero segments" are qualifiers {@code "ga"}, {@code "final"}, {@code "release"} only if being last (right-most) segment, empty string and "0" always.</li>
56
+
* <li>When trimming, "zero segments" are qualifiers {@code "final"}, {@code "ga"}, {@code "release"} only if being last (right-most) segment, empty string and "0" always.</li>
55
57
* <li>In comparison of same kind segments, the given type of segment determines comparison rules.</li>
56
-
* <li>In comparison of different kind of segments, following applies: {@code max > numeric > string > qualifier > min}.</li>
58
+
* <li>In comparison of different kind of segments, following applies: {@code min < qualifier < string < numeric < max}.</li>
57
59
* <li>Any version can be considered to have an infinite number of invisible trailing "zero segments", for the purposes of comparison (in other words, "1" == "1.0.0.0.0.0.0.0.0....")</li>
58
60
* <li>It is common that a version identifier starts with numeric segment (consider this "best practice").</li>
0 commit comments