-
Notifications
You must be signed in to change notification settings - Fork 3
Uber Jar
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 (or specific modules of it) plus all of its dependencies. Several of those jars are available from the Releases downloads, but you can also create them from sources:
git clone https://github.com/css4j/echosvg.git
cd echosvg
./gradlew uberjarThe 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-depsand 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-depsand 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-depsthe resulting jar should 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.