Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save artem-zinnatullin/4c250e04636e25797165 to your computer and use it in GitHub Desktop.
Save artem-zinnatullin/4c250e04636e25797165 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'
}
}
@twixthehero
Copy link

if you use Gradle Kotlin DSL: gradle/kotlin-dsl-samples#439 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment