From 83cac2351e9691f9deabc0b2707867c1f59b3089 Mon Sep 17 00:00:00 2001 From: Georg Echterling Date: Thu, 2 Mar 2023 12:05:33 +0100 Subject: [PATCH] Adds "CR" as a stability level marker for release candidates. Fixes #673. --- .../main/kotlin/de/fayard/refreshVersions/core/Version.kt | 2 +- .../versions-stability-level/ReleaseCandidate.txt | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt b/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt index b6d60302a..7594fb181 100644 --- a/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt +++ b/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt @@ -33,7 +33,7 @@ data class Version(val value: String) : Comparable { matches("beta") -> StabilityLevel.Beta matches("eap") -> StabilityLevel.EarlyAccessProgram matches("M", requireNumber = true) -> StabilityLevel.Milestone - matches("RC") -> StabilityLevel.ReleaseCandidate + matches("RC") || matches("CR") -> StabilityLevel.ReleaseCandidate isDefinitelyStable(this) -> StabilityLevel.Stable else -> null } diff --git a/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt b/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt index d450ad50c..550263acc 100644 --- a/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt +++ b/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt @@ -28,3 +28,10 @@ 4.8.0.201705170830-rc1 5.0.0.201805221745-rc1 5.0.0.201805301535-rc2 + +// org.hibernate.orm +6.0.0.CR1 +6.0.0.CR2 +6.2.0.CR1 +6.2.0.CR2 +6.2.0.CR3