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

mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release24.09 by this push:
     new cfe9a75c2d Fixed: distTar/distZip ships unused Node.js runtime caches, 
bloating the distribution archive (OFBIZ-13491)
cfe9a75c2d is described below

commit cfe9a75c2d3f6e704954a7c6db9179c432bdd55b
Author: Mridul Pathak <[email protected]>
AuthorDate: Wed Aug 12 09:46:33 2026 +0530

    Fixed: distTar/distZip ships unused Node.js runtime caches, bloating the 
distribution archive (OFBIZ-13491)
    
    Backported from trunk (#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 [...]
---
 build.gradle | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build.gradle b/build.gradle
index c5ab2b5183..9d2dd0823e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -91,6 +91,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