This is an automated email from the ASF dual-hosted git repository.
papegaaij pushed a commit to branch wicket-11.x
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/wicket-11.x by this push:
new 84d65b428e Stop the resources optimizer from minifying its own
minified output
84d65b428e is described below
commit 84d65b428eb761b85ea3d762fa67f0492b450514
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 f82f182a56..d9535cc3fb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1384,6 +1384,8 @@
<resourcesSet>
<excludes>
<exclude>**/jquery*.js</exclude>
+
<exclude>**/*.min.js</exclude>
+
<exclude>**/*.min.css</exclude>
</excludes>
</resourcesSet>
</resourcesSets>