From: David ‘Bombe’ Roden Date: Sat, 4 May 2019 19:23:30 +0000 (+0200) Subject: 👷 Run tests in parallel X-Git-Tag: v79^2~55 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=d1d44c47da8cd6c2452d5fd0cf6b7f56cdf5d2b4;ds=sidebyside 👷 Run tests in parallel --- diff --git a/build.gradle b/build.gradle index 1cee731..4709a8b 100644 --- a/build.gradle +++ b/build.gradle @@ -60,6 +60,10 @@ dependencies { apply from: 'version.gradle' +test { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 +} + task fatJar(type: Jar) { archiveName = project.name + '-jar-with-dependencies.jar' from { (configurations.runtime - configurations.provided).collect { it.isDirectory() ? it : zipTree(it) } }