👽️ Update Savoy ticket filter
[rhynodge.git] / build.gradle
index 814add9..04c938d 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()
@@ -38,14 +40,13 @@ dependencies {
     compile group: "com.google.guava", name: "guava", version: "14.0-rc1"
     compile group: "log4j", name: "log4j", version: "1.2.17"
     compile group: "org.apache.httpcomponents", name: "httpclient", version: "4.4"
-    compile group: "org.jsoup", name: "jsoup", version: "1.7.1"
+    compile group: "org.jsoup", name: "jsoup", version: "1.16.1"
     compile group: "javax.mail", name: "mail", version: "1.4.6-rc1"
     compile group: "org.apache.commons", name: "commons-lang3", version: "3.1"
-    compile group: "com.fasterxml.jackson.core", name: "jackson-core", version: "2.1.2"
-    compile group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: "2.1.2"
-    compile group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.1.2"
+    compile group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.15.1"
     compile group: "com.google.inject", name: "guice", version: "4.0"
     compile group: "org.jetbrains.kotlinx", name: "kotlinx-html-jvm", version: "0.7.1"
+    compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
 
     testCompile group: "junit", name: "junit", version:"4.12"
     testCompile group: "org.hamcrest", name: "hamcrest-library", version:"1.3"
@@ -80,7 +81,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) }