How to "super jar" with Gradle


(J.V.) #1

Is there an example anywhere on how to create a “super jar” in Gradle? This would be a jar with all my project/module jars and also every compile & runtime dependency jar all stuffed into one big “super jar” for an installer to use (if Unjarred would lay down a directory structure and all dependency jars needed to run in a container.

In Maven I could do this with an assembly plugin, and also specify in the manifest a list of jar dependencies by wild card ( /lib/*.jar ).


(Chris Marks) #2

There are several plug-ins to create a super jar. Look at the Gradle plugins website. The ones that come to mind are OneJar, JarJar and Shadow.