Search Gradle plugins

com.github.johnrengelman.shadow

A Gradle plugin for collapsing all dependencies and project code into a single Jar file. NOTE: This plugin changed the core maintainer and has new coordinates: https://plugins.gradle.org/plugin/com.gradleup.shadow

https://github.com/johnrengelman/shadow

Version 8.1.1 (latest)

Created 20 March 2023.

Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.github.johnrengelman.shadow") version "8.1.1"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:8.1.1")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.github.johnrengelman.shadow")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:8.1.1")
      }
    }
    
    apply(plugin = "com.github.johnrengelman.shadow")
  • Applying plugins to all subprojects .