Skip to content

Commit f8939ed

Browse files
committed
* Modified versioning schema
Signed-off-by: Marcin Kuszczak <1508798+aartiPl@users.noreply.github.com>
1 parent ce9e2da commit f8939ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repositories {
2727
}
2828

2929
group = "io.github.kscripting"
30-
version = "4.2.0-rc.2"
30+
version = "4.2.0-RC.2"
3131

3232
buildConfig {
3333
packageName(project.group.toString() + "." + project.name)
@@ -179,8 +179,8 @@ fun adjustVersion(archiveVersion: String): String {
179179

180180
val temporaryVersion = newVersion.substringBeforeLast(".")
181181

182-
if (temporaryVersion.endsWith("-rc") || temporaryVersion.endsWith("-beta") || temporaryVersion.endsWith("-alpha") ||
183-
temporaryVersion.endsWith("-snapshot")
182+
if (temporaryVersion.endsWith("-RC", true) || temporaryVersion.endsWith("-BETA", true) || temporaryVersion.endsWith("-ALPHA", true) ||
183+
temporaryVersion.endsWith("-SNAPSHOT", true)
184184
) {
185185
newVersion = temporaryVersion.substringBeforeLast("-") + "-SNAPSHOT"
186186
}

0 commit comments

Comments
 (0)