From 1cae6a854f32dcf3ed10c11774e5b7788b023274 Mon Sep 17 00:00:00 2001 From: atkumar Date: Tue, 17 Oct 2023 11:42:45 +0530 Subject: [PATCH 1/2] [MNT-23888] Changes done for handling reserved words while compressing the javascript files. --- .../resources/archetype-resources/pom.xml | 40 ++++++++++++------ .../resources/archetype-resources/pom.xml | 41 ++++++++++++------- .../resources/archetype-resources/pom.xml | 40 ++++++++++++------ 3 files changed, 81 insertions(+), 40 deletions(-) diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml index d17eb640..a5dbe9aa 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml @@ -289,49 +289,63 @@ - net.alchim31.maven - yuicompressor-maven-plugin - 1.5.1 + com.github.blutorange + closure-compiler-maven-plugin + 2.28.0 compress-assembly + generate-resources - compress + minify - ${project.basedir}/src/main/assembly/web - ${project.basedir}/src/main/assembly/web + ${project.basedir}/src/main/assembly + ${project.basedir}/src/main/assembly + web + web + true + + **/*.js + **/webscripts/** **/site-webscripts/** **/META-INF/** **/*.lib.js **/*.css - **/*-min.js - **/*-min.css + **/*.min.js + **/*.min.css true - false compress-resources + generate-resources - compress + minify + ${project.basedir}/src/main + ${project.basedir}/src/main + resources + resources + true + + **/*.js + **/webscripts/** **/site-webscripts/** **/*.lib.js **/*.css - **/*-min.js - **/*-min.css + **/*.min.js + **/*.min.css true - false diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml index 85aa0bda..60bf4a4b 100644 --- a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -357,54 +357,67 @@ - net.alchim31.maven - yuicompressor-maven-plugin - 1.5.1 + com.github.blutorange + closure-compiler-maven-plugin + 2.28.0 compress-assembly + generate-resources - compress + minify - ${project.basedir}/src/main/assembly/web - ${project.basedir}/src/main/assembly/web + ${project.basedir}/src/main/assembly + ${project.basedir}/src/main/assembly + web + web + true + + **/*.js + **/webscripts/** **/site-webscripts/** **/META-INF/** **/*.lib.js **/*.css - **/*-min.js - **/*-min.css + **/*.min.js + **/*.min.css true - false compress-resources + generate-resources - compress + minify + ${project.basedir}/src/main + ${project.basedir}/src/main + resources + resources + true + + **/*.js + **/webscripts/** **/site-webscripts/** **/*.lib.js **/*.css - **/*-min.js - **/*-min.css + **/*.min.js + **/*.min.css true - false - org.zeroturnaround diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml index fd7972e0..688792f8 100644 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -223,49 +223,63 @@ - net.alchim31.maven - yuicompressor-maven-plugin - 1.5.1 + com.github.blutorange + closure-compiler-maven-plugin + 2.28.0 compress-assembly + generate-resources - compress + minify - ${project.basedir}/src/main/assembly/web - ${project.basedir}/src/main/assembly/web + ${project.basedir}/src/main/assembly + ${project.basedir}/src/main/assembly + web + web + true + + **/*.js + **/webscripts/** **/site-webscripts/** **/META-INF/** **/*.lib.js **/*.css - **/*-min.js - **/*-min.css + **/*.min.js + **/*.min.css true - false compress-resources + generate-resources - compress + minify + ${project.basedir}/src/main + ${project.basedir}/src/main + resources + resources + true + + **/*.js + **/webscripts/** **/site-webscripts/** **/*.lib.js **/*.css - **/*-min.js - **/*-min.css + **/*.min.js + **/*.min.css true - false From 013fed7669d955178f4333c2ded37674136317d1 Mon Sep 17 00:00:00 2001 From: atkumar Date: Tue, 17 Oct 2023 12:29:00 +0530 Subject: [PATCH 2/2] [MNT-23888] Changes done for handling reserved words while compressing the javascript files. --- .../src/main/resources/archetype-resources/pom.xml | 2 +- .../src/main/resources/archetype-resources/pom.xml | 2 +- .../src/main/resources/archetype-resources/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml index a5dbe9aa..56e44dfc 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml @@ -287,7 +287,7 @@ - + com.github.blutorange closure-compiler-maven-plugin diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml index 60bf4a4b..865a0184 100644 --- a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -355,7 +355,7 @@ - + com.github.blutorange closure-compiler-maven-plugin diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml index 688792f8..68dd6499 100644 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -221,7 +221,7 @@ - + com.github.blutorange closure-compiler-maven-plugin