🚸 Only fail a comic state if there are no strips
[rhynodge.git] / build.gradle
index ab50f04..d697cc7 100644 (file)
@@ -17,7 +17,7 @@ sourceCompatibility = 1.8
 targetCompatibility = 1.8
 
 buildscript {
-    ext.kotlinVersion = '1.0.2'
+    ext.kotlinVersion = '1.2.51'
 
     repositories {
         mavenCentral()
@@ -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 {