From 9093ed105bd99dd88fad4238570150faf35934af Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Wed, 14 Apr 2021 07:59:50 +0000
Subject: [PATCH] Kotlin and YAML introduced.

---
 borgbutler-core/build.gradle |   40 +++++++++++++++++++++++++++++++---------
 1 files changed, 31 insertions(+), 9 deletions(-)

diff --git a/borgbutler-core/build.gradle b/borgbutler-core/build.gradle
index 17fb801..7a89458 100644
--- a/borgbutler-core/build.gradle
+++ b/borgbutler-core/build.gradle
@@ -1,22 +1,29 @@
 plugins {
     id 'java'
+        id "org.jetbrains.kotlin.jvm" version "1.4.32"
 }
 
 description = 'borgbutler-core'
 
 dependencies {
-    compile group: 'commons-io', name: 'commons-io', version: '2.6'
-    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1'
-    compile group: 'org.apache.commons', name: 'commons-exec', version: '1.3'
-    compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.2'
-    compile group: 'org.apache.commons', name: 'commons-compress', version: '1.18'
-    compile group: 'org.apache.commons', name: 'commons-jcs-core', version: '2.2.1'
+    implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
+    implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1'
+    implementation group: 'org.apache.commons', name: 'commons-exec', version: '1.3'
+    implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.2'
+    implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.18'
+    implementation group: 'org.apache.commons', name: 'commons-jcs-core', version: '2.2.1'
     // https://mvnrepository.com/artifact/com.esotericsoftware/kryo
-    compile group: 'com.esotericsoftware', name: 'kryo', version: '5.0.0-RC1'
+    implementation group: 'com.esotericsoftware', name: 'kryo', version: '5.0.0-RC1'
     // Serialization (faster than Java built-in)
+    implementation 'io.github.microutils:kotlin-logging-jvm:2.0.6'
 
-    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
-    compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.8'
+    implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.3'
+    implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.12.3'
+    // https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310
+    implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.12.3'
+
+
+    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
 }
 
 repositories {
@@ -24,8 +31,23 @@
     jcenter()
 }
 
+sourceSets {
+    main.kotlin.srcDirs += 'src/main/kotlin'
+    main.java.srcDirs += 'src/main/java'
+}
+
 test {
     // set heap size for the test JVM(s)
     minHeapSize = "128m"
     maxHeapSize = "1500m"
 }
+compileKotlin {
+    kotlinOptions {
+        jvmTarget = "1.8"
+    }
+}
+compileTestKotlin {
+    kotlinOptions {
+        jvmTarget = "1.9"
+    }
+}

--
Gitblit v1.10.0