Skip to content

Commit bc3c0f2

Browse files
committed
Fix configuration cache issue with printVersion
1 parent b025705 commit bc3c0f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

kobweb/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ application {
5252
// Useful for CI
5353
tasks.register("printVersion") {
5454
description = "Prints the current version of this CLI."
55+
// Access version in a way that is cache configuration compatibile
56+
val cliVersion = provider { version.toString() }
5557
doLast {
56-
println(version.toString())
58+
println(cliVersion.get())
5759
}
5860
}
5961

0 commit comments

Comments
 (0)