On Travis my tests repeatedly fail because of
I tried using
GradleRunner.withArguments('--no-daemon'), but that’s not allowed. How can I prevent TestKit from using daemon mode?
Example build: https://travis-ci.org/sherter/google-java-format-gradle-plugin/jobs/134162967
(It’s strange that only the oraclejdk8 build always fails…)
Related: Travis CI: org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)