💚 Declare output for “writeVersion” task
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Aug 2022 09:55:30 +0000 (11:55 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Aug 2022 09:56:46 +0000 (11:56 +0200)
version.gradle

index 88ff71e..7613871 100644 (file)
@@ -10,6 +10,7 @@ buildscript {
 import org.ajoberstar.grgit.Grgit
 
 task(writeVersion) {
+    it.outputs.file("src/generated/resources/version.yaml")
     doLast {
         def grgit = Grgit.open(dir: project.rootDir)
         def version = grgit.resolve.toCommit("HEAD").id