⬆️ Use newest Kotlin version
[Sone.git] / build.gradle
index b71eb5d..a0861a6 100644 (file)
@@ -1,8 +1,8 @@
 group = 'net.pterodactylus'
-version = '0.9.8'
+version = '80'
 
 buildscript {
-    ext.kotlinVersion = '1.2.71'
+    ext.kotlinVersion = '1.3.41'
     repositories {
         mavenCentral()
     }
@@ -20,8 +20,8 @@ repositories {
 
 apply plugin: 'java'
 
-sourceCompatibility = 1.7
-targetCompatibility = 1.7
+sourceCompatibility = 1.8
+targetCompatibility = 1.8
 
 tasks.withType(JavaCompile) {
        options.encoding = 'UTF-8'
@@ -43,7 +43,7 @@ dependencies {
     provided group: 'org.freenetproject', name: 'freenet-ext', version: '29'
     provided group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.54'
 
-    compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib'
+    compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8'
     compile group: 'net.pterodactylus', name: 'utils', version: '0.12.4'
     compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
     compile group: 'com.google.guava', name: 'guava', version: '27.0.1-android'
@@ -51,8 +51,9 @@ dependencies {
     compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.9.1'
     compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
     compile group: 'org.jsoup', name: 'jsoup', version: '1.10.2'
+    compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '4.1.0'
 
-    testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test'
+    testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit'
     testCompile group: 'junit', name: 'junit', version: '4.11'
     testCompile group: 'org.mockito', name: 'mockito-core', version: '2.10.0'
     testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
@@ -65,7 +66,7 @@ test {
 }
 
 task fatJar(type: Jar) {
-    archiveName = project.name + '-jar-with-dependencies.jar'
+    archiveName = project.name.toLowerCase() + '-jar-with-dependencies.jar'
     from { (configurations.runtime - configurations.provided).collect { it.isDirectory() ? it : zipTree(it) } }
     manifest {
         attributes('Plugin-Main-Class': 'net.pterodactylus.sone.main.SonePlugin')