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

papegaaij pushed a commit to branch wicket-10.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/wicket-10.x by this push:
     new 38fa6dfb42 Stop the resources optimizer from minifying its own 
minified output
38fa6dfb42 is described below

commit 38fa6dfb426ad86f31d8e0d72afe0b1028a338c6
Author: Emond Papegaaij <[email protected]>
AuthorDate: Fri Nov 6 08:30:40 2026 +0100

    Stop the resources optimizer from minifying its own minified output
    
    The resources-optimizer-maven-plugin reads its input from target/classes,
    the same directory it writes its .min.js and .min.css files to, and only
    jquery*.js was excluded. A build without clean therefore found the .min
    files of the previous run and minified them again, into *.min.min.js and
    *.min.min.css. For wicket-veil.js this failed the build of
    wicket-extensions: its minified form contains the $jscomp polyfills that
    Closure injects for for...of, and compiling those again redefines their
    @define constants (JSC_NON_CONST_DEFINE). Modules that got past the
    optimizer packaged the doubled files; wicket-core's jar carried nine of
    them.
    
    The optimizer now also excludes **/*.min.js and **/*.min.css. A clean
    build produces the same minified files as before; a second build without
    clean now succeeds and no longer produces *.min.min.* files. Applications
    see no difference, as the released jars are built from a clean tree.
    
    GitHub issue #1832
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 pom.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pom.xml b/pom.xml
index 75994e3ba1..ae58dfc7e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1314,6 +1314,8 @@
                                                        <resourcesSet>
                                                                <excludes>
                                                                        
<exclude>**/jquery*.js</exclude>
+                                                                       
<exclude>**/*.min.js</exclude>
+                                                                       
<exclude>**/*.min.css</exclude>
                                                                </excludes>
                                                        </resourcesSet>
                                                </resourcesSets>

Reply via email to