Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.
ServiceFileTransformer
(Issue #72)shadow
configuration contains no dependencies.runShadow
now registers shadowJar
as an input. Previously, runShadow
did not execute shadowJar
and an error occurred.dependencies
block. This
allows UP-TO-DATE checking to work properly when changing the dependencies
rules (Issue #54)ShadowBasePlugin
is always applied.
ShadowJavaPlugin
and ShadowApplicationPlugin
are applied in reaction to applying the java
and application
plugins respectively.java
plugin automatically. java
or groovy
must be applied in conjunction with shadow
.dependencies {}
block underneath shadowJar
. This allows better include/exclude control
for dependencies.shadow
configuration are automatically added to the Class-Path
attribute in the manifest
for shadowJar
application
plugin and settings mainClassName
automatically configures the Main-Class
attribute in
the manifest for shadowJar
runShadow
now utilizes the output of the shadowJar
and executes using java -jar <shadow jar file>
java -jar
to execute instead of placing all files on classpath
and executing main class.