⬆️ Upgrade Kotlin to 1.3.70
[Sone.git] / build.gradle
index 78c3110..3f44ffa 100644 (file)
@@ -1,12 +1,12 @@
 
 plugins {
-    id 'org.jetbrains.kotlin.jvm' version '1.3.61'
-    id 'org.jetbrains.kotlin.plugin.noarg' version '1.3.61'
+    id 'org.jetbrains.kotlin.jvm' version '1.3.70'
+    id 'org.jetbrains.kotlin.plugin.noarg' version '1.3.70'
     id 'info.solidsoft.pitest' version '1.4.5'
 }
 
 group = 'net.pterodactylus'
-version = '80'
+version = '81'
 
 repositories {
      mavenCentral()
@@ -22,6 +22,12 @@ tasks.withType(JavaCompile) {
        options.encoding = 'UTF-8'
 }
 
+compileKotlin {
+    kotlinOptions {
+        jvmTarget = "1.8"
+    }
+}
+
 configurations {
     provided {
         dependencies.all { dep ->
@@ -57,8 +63,23 @@ dependencies {
 
 apply from: 'version.gradle'
 
-test {
+task parallelTest(type: Test) {
     maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
+    useJUnit {
+        excludeCategories 'net.pterodactylus.sone.test.NotParallel'
+    }
+}
+
+task notParallelTest(type: Test) {
+    maxParallelForks = 1
+    useJUnit {
+        includeCategories 'net.pterodactylus.sone.test.NotParallel'
+    }
+}
+
+test {
+    exclude '**'
+    dependsOn parallelTest, notParallelTest
 }
 
 task fatJar(type: Jar) {