Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.
Shadow
Gradle plugin for creating fat/uber JARs with support for package relocation.
[!NOTE]\
Previously this plugin was developed by @johnrengelman and published under the
ID [com.github.johnrengelman.shadow][johnrengelman's]
before maintenance was transferred to the GradleUp organization to ensure future
development, see #908.>
If you are still using the old plugin ID in your build script, we recommend to switch to the new plugin ID [
com.gradleup.shadow][gradleup's]
and update to the latest version to receive all the latest bug fixes and improvements.
Documentation
Current Status
Compatibility Matrix
| Shadow Version | Min Gradle Version | Min Java Version | Plugin ID | |----------------|--------------------|------------------|------------------------------------------------------| | 8.0.0+ | 8.0 | 8 | [com.github.johnrengelman.shadow][johnrengelman's] | | 8.3.0+ | 8.3 | 8 | [com.gradleup.shadow][gradleup's] | | 9.0.0+ | 8.11 | 11 | [com.gradleup.shadow][gradleup's] | | 9.2.0+ | 8.11 | 17 | [com.gradleup.shadow][gradleup's] | | 9.3.0+ | 9.0 | 17 | [com.gradleup.shadow][gradleup's] | | 9.5.0+ | 9.2 | 17 | [com.gradleup.shadow][gradleup's] |
[johnrengelman's]: https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow [gradleup's]: https://plugins.gradle.org/plugin/com.gradleup.shadow