Skip to content

Commit 3611b25

Browse files
committed
fix: version naming
1 parent 2354340 commit 3611b25

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ plugins {
77
`maven-publish`
88
}
99

10+
val baseVersion = "0.0.1"
11+
val commitHash = System.getenv("COMMIT_HASH")
12+
val snapshotversion = "${baseVersion}-dev.$commitHash"
13+
1014
allprojects {
1115
group = "app.simplecloud.plugin.command"
12-
version = "0.0.1"
16+
version = if (commitHash != null) snapshotversion else baseVersion
1317

1418
repositories {
1519
mavenCentral()

0 commit comments

Comments
 (0)