Skip to content
carlosame edited this page Jul 11, 2024 · 3 revisions

If you are managing your classpath manually instead of using the dependency automation provided by tools like Gradle or Maven, you may find useful to build a uber jar which is a bundle of EchoSVG plus all of its dependencies. You can create it from sources:

git clone https://github.com/css4j/echosvg.git
cd echosvg
./gradlew uberjar

The jar file shall be available at echosvg-all/build/libs/echosvg-all-<version>-alldeps.jar.

However, that archive is big and you may only want the classes that are needed to run a specific module. In that case, run:

./gradlew <subproject-name>-jar-with-deps

and the archive shall be available at <subproject-name>/build/libs/<subproject-name>-<version>-with-deps.jar.

For example, to create an all-deps jar for echosvg-svggen:

./gradlew echosvg-svggen-jar-with-deps

and the it will be located at echosvg-svggen/build/libs/echosvg-svggen-<version>-with-deps.jar.

Note that if you execute

./gradlew echosvg-all-jar-with-deps

the resulting jar will be identical to echosvg-all-<version>-alldeps.jar.


Note: please do not use a uber jar if your project is a library or there are downstream projects that depend on it.

Clone this wiki locally