Headless mode for forked processes.
automerge: 3d1099b

* commit '3d1099b1449b8f70c0dd8cb403b31851258d2326':
  Headless mode for forked processes.
diff --git a/base/build.gradle b/base/build.gradle
index e883f3b..92597cb 100644
--- a/base/build.gradle
+++ b/base/build.gradle
@@ -12,6 +12,11 @@
 final def checkJavaVersionTask = tasks['checkJavaVersion']
 
 allprojects { subproject ->
+    tasks.withType(JavaForkOptions) {
+        // Prevent forked processes from stealing focus (on MacOS at least)
+        jvmArgs '-Djava.awt.headless=true'
+    }
+
     afterEvaluate {
         // Only check if we are doing build type tasks. Things like dependency listing
         // should still work with a "wrong" java version.