From d1d44c47da8cd6c2452d5fd0cf6b7f56cdf5d2b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 4 May 2019 21:23:30 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=91=B7=20Run=20tests=20in=20parallel?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) 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) } } -- 2.7.4