From f8939ed5fe7dcf610c0b3d749450d1662a10e2bf Mon Sep 17 00:00:00 2001 From: Marcin Kuszczak <1508798+aartiPl@users.noreply.github.com> Date: Sat, 31 Dec 2022 17:49:58 +0100 Subject: [PATCH] * Modified versioning schema Signed-off-by: Marcin Kuszczak <1508798+aartiPl@users.noreply.github.com> --- build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 86590a7f..52c146d3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,7 +27,7 @@ repositories { } group = "io.github.kscripting" -version = "4.2.0-rc.2" +version = "4.2.0-RC.2" buildConfig { packageName(project.group.toString() + "." + project.name) @@ -179,8 +179,8 @@ fun adjustVersion(archiveVersion: String): String { val temporaryVersion = newVersion.substringBeforeLast(".") - if (temporaryVersion.endsWith("-rc") || temporaryVersion.endsWith("-beta") || temporaryVersion.endsWith("-alpha") || - temporaryVersion.endsWith("-snapshot") + if (temporaryVersion.endsWith("-RC", true) || temporaryVersion.endsWith("-BETA", true) || temporaryVersion.endsWith("-ALPHA", true) || + temporaryVersion.endsWith("-SNAPSHOT", true) ) { newVersion = temporaryVersion.substringBeforeLast("-") + "-SNAPSHOT" }