From 1218fa037e14538ba89a535cb7cbee0012feb65e Mon Sep 17 00:00:00 2001 From: Maksymilian Pawlak <120831+m4ksio@users.noreply.github.com> Date: Mon, 12 Feb 2018 13:10:03 +0100 Subject: [PATCH] Allows configuring maxParallelForks as system property (#2482) * Allows configuring maxParallelForks as system property --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 09199763b3..b20d78d4d3 100644 --- a/build.gradle +++ b/build.gradle @@ -168,6 +168,10 @@ allprojects { tasks.withType(Test) { // Prevent the project from creating temporary files outside of the build directory. systemProperties['java.io.tmpdir'] = buildDir + + if (System.getProperty("test.maxParallelForks") != null) { + maxParallelForks = Integer.valueOf(System.getProperty("test.maxParallelForks")) + } } group 'net.corda'