✅ Add equals for AbstractState
[rhynodge.git] / build.gradle
index 582c0ff..e195ee3 100644 (file)
@@ -1,5 +1,19 @@
-apply plugin: "java"
-apply plugin: "kotlin"
+buildscript {
+    ext.kotlinVersion = '1.4.10'
+
+    repositories {
+        mavenCentral()
+    }
+    dependencies {
+        classpath group: "org.ajoberstar", name: "gradle-git", version: "1.1.0"
+    }
+}
+
+plugins {
+    id 'java'
+    id('org.jetbrains.kotlin.jvm') version '1.4.10'
+}
+
 apply plugin: "war"
 apply plugin: "jacoco"
 apply plugin: "idea"
@@ -16,18 +30,6 @@ version = "0.1"
 sourceCompatibility = 1.8
 targetCompatibility = 1.8
 
-buildscript {
-    ext.kotlinVersion = '1.2.51'
-
-    repositories {
-        mavenCentral()
-    }
-    dependencies {
-        classpath group: "org.ajoberstar", name: "gradle-git", version: "1.1.0"
-        classpath group: "org.jetbrains.kotlin", name: "kotlin-gradle-plugin", version: "$kotlinVersion"
-    }
-}
-
 repositories {
     mavenCentral()
     jcenter()
@@ -81,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) }