Step-by-step shading with Gradle Add the plugin. First we need to add the plugin we will be using. ... Configure the top-level dependency we want to shade. Add a dependency on the jar you wish to shade. ... Configure any transitive dependencies we don't want to shade. ... Set up the packages we want to relocate. ... Publish our shaded jar. May 30, 2020