Forked from artem-zinnatullin/GradleWorkersPleaseStopTakingFocus.gradle
Last active
August 29, 2015 14:25
-
-
Save stefanhoth/a96ee294b0aca00de3bb to your computer and use it in GitHub Desktop.
Prevent Gradle Workers from taking focus! #DevelopersLikeComfort
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You can place it in the root build.gradle | |
allprojects { | |
tasks.withType(JavaForkOptions) { | |
// Forked processes like GradleWorkerMain for tests won't steal focus! | |
jvmArgs '-Djava.awt.headless=true' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment