Skip to content

Commit

Permalink
Fix version computation when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroyer committed Jan 12, 2025
1 parent a4032ec commit 76e4c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ tasks.withType<KotlinCompile>().configureEach {

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

0 comments on commit 76e4c0d

Please sign in to comment.