X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=build.gradle;h=d1bf4d994623fe48cdfd4320ceb2d2d1db8afe11;hb=0ace0221fc20ef93457b8c62c6ac12286c1aa12c;hp=78c3110cf2d19982a92b5c3d5ebfd8c95801b17a;hpb=9a0fa68831f9e04851b485db7b1bcdecf29e6b32;p=Sone.git diff --git a/build.gradle b/build.gradle index 78c3110..d1bf4d9 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } 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) {