diff --git a/src/test/groovy/com/google/protobuf/gradle/ProtobufPluginTestHelper.groovy b/src/test/groovy/com/google/protobuf/gradle/ProtobufPluginTestHelper.groovy index 82d79ba2..4e5f6ba5 100644 --- a/src/test/groovy/com/google/protobuf/gradle/ProtobufPluginTestHelper.groovy +++ b/src/test/groovy/com/google/protobuf/gradle/ProtobufPluginTestHelper.groovy @@ -66,6 +66,10 @@ final class ProtobufPluginTestHelper { // // Set memory limit for all gradle build, not only for dexing args.add("-Porg.gradle.jvmargs=-Xmx2048m") + // Disable daemon to safe memory + // Each gradle version run daemon, which use a bit of ram. + // After running 4 different versions of Gradle ram will run out. + args.add("--no-daemon") return GradleRunner.create() .withProjectDir(mainProjectDir) .withArguments(args)