}
group = 'net.pterodactylus'
-version = '80'
+version = '81'
repositories {
mavenCentral()
options.encoding = 'UTF-8'
}
+compileKotlin {
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+}
+
configurations {
provided {
dependencies.all { dep ->
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) {