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.6.0-jre
JS Processor Apache 2.0
com.google.javascript » closure-compiler(optional)
Closure Compiler is a JavaScript optimizing compiler. It parses your
v20260610v20260629
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.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.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.18

Provided Dependencies (3)

Category/LicenseGroup / ArtifactVersionUpdates
Java Spec EPL 2.0 +1
jakarta.servlet.jsp » jakarta.servlet.jsp-api
Jakarta Pages defines a templating technology for dynamically creating web resources
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 (3)

Category/LicenseGroup / ArtifactVersionUpdates
Expression Lang EPL 2.0 +1
jakarta.el » jakarta.el-api
Jakarta Expression Language defines an expression language for Java applications
6.0.1
Java Spec EPL 2.0 +1
jakarta.servlet » jakarta.servlet-api
API for Jakarta Servlet, enabling web applications to handle HTTP requests and responses through a standard interface ...
6.1.0
Testing EPL 2.0
org.junit.jupiter » junit-jupiter-engine
Core package for the JUnit Jupiter test engine.
6.1.06.1.1