From 7ed658c2ad86d0ab3ab8cd7b0a751908cdfbf802 Mon Sep 17 00:00:00 2001 From: rougsig Date: Mon, 27 Jun 2022 00:30:02 +0300 Subject: [PATCH] Add --no-daemon arg for android gradle test runner --- .../google/protobuf/gradle/ProtobufPluginTestHelper.groovy | 4 ++++ 1 file changed, 4 insertions(+) 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)