This is an automated email from the ASF dual-hosted git repository.

mridulpathak 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 7bbf94b2d9 Fixed: distTar/distZip ships unused Node.js runtime caches, 
bloating the distribution archive (OFBIZ-13491) (#1630)
7bbf94b2d9 is described below

commit 7bbf94b2d91745c63f6df9d41128514d79a03cc8
Author: Mridul Pathak <[email protected]>
AuthorDate: Wed Aug 12 09:45:24 2026 +0530

    Fixed: distTar/distZip ships unused Node.js runtime caches, bloating the 
distribution archive (OFBIZ-13491) (#1630)
    
    The main distribution's CopySpec included framework/**, applications/**, 
themes/**, plugins/** wholesale, which unintentionally swept up each 
node-gradle subproject's downloaded Node.js runtime cache (.gradle/nodejs) 
alongside actual source/runtime files. Excludes **/.gradle/** from the 
distribution contents so this build-tool cache, never read at runtime, is no 
longer packaged. Verified by building distTar and confirming no .gradle 
directories remain in the extracted archive while no [...]
---
 build.gradle | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build.gradle b/build.gradle
index 233b5ed565..587a87a84f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -146,6 +146,9 @@ application {
 
 distributions.main.contents.from(rootDir) {
     include 'framework/**', 'applications/**', 'themes/**', 'plugins/**'
+    // Excludes each node-gradle subproject's downloaded Node.js runtime cache 
--
+    // it's build-tool cache, never read at runtime.
+    exclude '**/.gradle/**'
 }
 
 javadoc {

Reply via email to