Skip to content

Commit

Permalink
* Modified versioning schema
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Kuszczak <[email protected]>
  • Loading branch information
aartiPl committed Dec 31, 2022
1 parent ce9e2da commit f8939ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
}
Expand Down

0 comments on commit f8939ed

Please sign in to comment.