Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanhoth/a96ee294b0aca00de3bb to your computer and use it in GitHub Desktop.
Save stefanhoth/a96ee294b0aca00de3bb to your computer and use it in GitHub Desktop.
Prevent Gradle Workers from taking focus! #DevelopersLikeComfort
// 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