X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=build.gradle;h=3730ead2361ac2ce932e96016719e102d78f9260;hp=78c3110cf2d19982a92b5c3d5ebfd8c95801b17a;hb=faf66247a34f64946990a985d2ea3003465969cb;hpb=9a0fa68831f9e04851b485db7b1bcdecf29e6b32 diff --git a/build.gradle b/build.gradle index 78c3110..3730ead 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group = 'net.pterodactylus' -version = '80' +version = '81' repositories { mavenCentral() @@ -57,8 +57,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) {