I\'ve been trying to compile and test a large project to use Gradle. The test run fine until they die unexpectedly. I dug around and resources said that this is due to a mem
I've had similar issue on DigitalOcean's server, my gradle build failed completely on test
stage with very similar stacktrace and without a single test being executed.
It is stated in Gradle docs that gradle daemon should not be run in CI environments. So I just added --no-daemon
to my build command and everything worked well and good. Also stopping daemon with ./gradlew --stop
has been useful, but it worked only for a single build - the next one also failed.
My build command:
./gradlew build --no-daemon