From 6f0fdf9287bcedec6de5df619b317f4263ebe9ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 29 Apr 2023 21:05:56 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=92=9A=20Fix=20build=20file=20for=20when?= =?utf8?q?=20running=20with=20Gradle=20daemon?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 73ef9a1..e195ee3 100644 --- a/build.gradle +++ b/build.gradle @@ -83,7 +83,7 @@ task createVersion() { import org.ajoberstar.grgit.Grgit createVersion { doLast { - def gitRepo = Grgit.open(".") + def gitRepo = Grgit.open(projectDir) version = gitRepo.describe() new File("src/generated/resources").mkdirs() new File("src/generated/resources/version.txt").withWriter() { it.write(version) } -- 2.7.4