Skip to content

Commit d840b48

Browse files
committed
define the version as releaseVersion
1 parent 5e3ef5b commit d840b48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ plugins {
77
id("com.gradle.plugin-publish") version "2.1.0"
88
}
99

10+
def releaseVersion = "0.0.1"
11+
1012
group = "io.github.git-commit-id"
1113

1214
project.gradle.taskGraph.whenReady {
1315
if (gradle.taskGraph.hasTask(":publishAllPublicationsToLocalPluginRepositoryRepository")) {
14-
version = "0.0.1-alpha"
16+
version = "${releaseVersion}-alpha.local-test"
1517

1618
// Skip signing when we publish to local
1719
tasks.withType(Sign) {
1820
enabled = false
1921
}
2022
} else {
21-
version = "0.0.1-beta"
23+
version = "${releaseVersion}"
2224
}
2325
}
2426

0 commit comments

Comments
 (0)