Skip to content

Commit 341abea

Browse files
committed
try to fix github workflow * 2
1 parent 4ac52b4 commit 341abea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ tasks {
6363
}
6464
}
6565

66-
tasks.register("writeVersionToFile") {
66+
val writeVersionToFile by tasks.registering {
67+
val versionProp = project.objects.property(String::class.java).apply {
68+
set(project.version.toString())
69+
}
70+
71+
outputs.file("build/version.txt")
72+
6773
doLast {
6874
val versionFile = file("build/version.txt")
69-
versionFile.writeText(project.version.toString())
75+
versionFile.writeText(versionProp.get())
7076
}
7177
}
7278

0 commit comments

Comments
 (0)