HtmlCompressor is a small, fast and very easy to use Java library that minifies given HTML or XML source by removing extra whitespaces, comments and other unneeded characters without breaking the content structure. As a result pages become smaller in size and load faster. A command-line version of the compressor is also available.

Compile Dependencies (6)

Category/LicenseGroup / ArtifactVersionUpdates
Core Utils Apache 2.0
com.google.guava » guava(optional)
Guava is a suite of core and expanded libraries that include
33.5.0-jre33.6.0-jre
JS Processor Apache 2.0
com.google.javascript » closure-compiler(optional)
Closure Compiler is a JavaScript optimizing compiler. It parses your
v20250820v20260512
com.yahoo.platform.yui » yuicompressor(optional)
The YUI Compressor is a JavaScript compressor which, in addition to removing
2.4.8
JVM Languages MPL 2.0
org.mozilla » rhino(optional)
Rhino JavaScript runtime jar, excludes XML, tools, and ScriptEngine wrapper
1.8.11.9.1
Logging MIT
org.slf4j » slf4j-api
API for SLF4J (The Simple Logging Facade for Java) which serves as a simple facade or abstraction for various logging ...
2.0.172.0.18
Logging MIT
org.slf4j » slf4j-simple(optional)
Binding/provider for SLF4J, which outputs all events to System.err. Only messages of level INFO and higher are printed.
2.0.172.0.18

Provided Dependencies (3)

Category/LicenseGroup / ArtifactVersionUpdates
jakarta.servlet.jsp » jakarta.servlet.jsp-api
Jakarta Server Pages API
4.0.0
Core Utils Apache 2.0
org.apache.commons » commons-lang3
Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are ...
3.20.0
Template Engine Apache 2.0
org.apache.velocity » velocity-engine-core
Core module of Apache Velocity, a Java-based template engine for generating text output.
2.4.1

Test Dependencies (1)

Category/LicenseGroup / ArtifactVersionUpdates
Testing EPL 2.0
org.junit.jupiter » junit-jupiter-engine
Core package for the JUnit Jupiter test engine.
6.0.16.0.3