Create a Fat JAR with Gradle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 9: | Line 9: | ||
=Overview= | =Overview= | ||
A "fat" JAR, or an uber-JAR, is a self-sufficient archive which contains both classes and dependencies needed to run an application. The Gradle Java plugin creates "thin" JARs. | A "fat" JAR, or an uber-JAR, is a self-sufficient archive which contains both classes and dependencies needed to run an application. The Gradle Java plugin creates "thin" JARs. However, it can be configured to create a "fat" JAR. Specialized plugins are also available. | ||
=Creating a Fat JAR with the Jar Task from the Java Plugin= | |||
=Creating a Fat JAR with the Shadow Plugin= | |||
<font color=darkgray>Not tested.</font> |
Revision as of 00:02, 8 March 2019
External
Internal
Overview
A "fat" JAR, or an uber-JAR, is a self-sufficient archive which contains both classes and dependencies needed to run an application. The Gradle Java plugin creates "thin" JARs. However, it can be configured to create a "fat" JAR. Specialized plugins are also available.
Creating a Fat JAR with the Jar Task from the Java Plugin
Creating a Fat JAR with the Shadow Plugin
Not tested.