This is an automated email from the ASF dual-hosted git repository.
ashishvijaywargiya pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 868d9409d0 Raise Groovy compile worker heap to fix docker image build
(#1702)
868d9409d0 is described below
commit 868d9409d0f9a17e4b1e0e2db91ccce31a9af3e8
Author: Ashish Vijaywargiya <[email protected]>
AuthorDate: Sun Aug 23 21:10:01 2026 +0530
Raise Groovy compile worker heap to fix docker image build (#1702)
---
build.gradle | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/build.gradle b/build.gradle
index 860c12764a..fa8510c50a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -194,6 +194,16 @@ tasks.withType(JavaCompile) {
}
}
+// The Groovy compiler forks to an isolated worker process whose default heap
(512m) is too
+// small to jointly compile the full framework + applications + plugins Groovy
source set in one
+// pass; on Linux this reliably fails compileGroovy with a bare "parsing
failed" (no further
+// detail) rather than an explicit OutOfMemoryError. Raise the worker heap to
avoid it. See the
+// "Build and push framework with plugins docker image" job, which is the one
that pulls in the
+// full plugins/ source tree and is where this was first observed.
+tasks.withType(GroovyCompile) {
+ groovyOptions.forkOptions.memoryMaximumSize = '2g'
+}
+
// Enables Zip larger than 4 GB and more than 65535 entries
tasks.withType(Zip) { zip64 = true }