From 2a8f881cc5867d97713693f226329bd14abf3829 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 14 Jul 2022 18:33:14 +0100 Subject: [PATCH] Make more memory available when running checkstyleNohttp Gradle 7.5 changes how Checkstyle tasks are run to use separate worker VMs. A side-effect of this is that there isn't always enough heap space available for the checkstyleNohttp task. See gh-31753 --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 9da48942a2..83bfda6c17 100644 --- a/build.gradle +++ b/build.gradle @@ -38,3 +38,7 @@ allprojects { resolutionStrategy.cacheChangingModulesFor 0, "minutes" } } + +tasks.named("checkstyleNohttp").configure { + maxHeapSize = "1g" +}