From: David ‘Bombe’ Roden Date: Sat, 11 Nov 2017 09:38:13 +0000 (+0100) Subject: Fix Gradle depreciation warning X-Git-Tag: v2~98 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=47ddf337a7b17600a7cedaa6b1fb070a229850b0;p=rhynodge.git Fix Gradle depreciation warning --- diff --git a/build.gradle b/build.gradle index f516564..64a8447 100644 --- a/build.gradle +++ b/build.gradle @@ -81,11 +81,13 @@ task createVersion() { import org.ajoberstar.grgit.Grgit -createVersion << { - def gitRepo = Grgit.open(".") - version = gitRepo.describe() - new File("src/generated/resources").mkdirs() - new File("src/generated/resources/version.txt").withWriter() { it.write(version) } +createVersion { + doLast { + def gitRepo = Grgit.open(".") + version = gitRepo.describe() + new File("src/generated/resources").mkdirs() + new File("src/generated/resources/version.txt").withWriter() { it.write(version) } + } } war {