Skip to content

Commit 76e4c0d

Browse files
committed
Fix version computation when publishing
1 parent a4032ec commit 76e4c0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ tasks.withType<KotlinCompile>().configureEach {
3939

4040
gradle.taskGraph.whenReady {
4141
if (hasTask(":publishPlugins")) {
42-
check(cmd("git diff --quiet --exit-code").waitFor() == 0) { "Working tree is dirty" }
43-
val process = cmd("git describe --exact-match")
42+
check(cmd("git", "diff", "--quiet", "--exit-code").waitFor() == 0) { "Working tree is dirty" }
43+
val process = cmd("git", "describe", "--exact-match")
4444
check(process.waitFor() == 0) { "Version is not tagged" }
4545
version = process.text.trim().removePrefix("v")
4646
}

0 commit comments

Comments
 (0)