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 7.1.2

7.1.2

Created 29 December 2021.

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

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
  }
}

apply(plugin = "com.github.johnrengelman.shadow")

Using the plugins DSL:

plugins {
  id "com.github.johnrengelman.shadow" version "7.1.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
  }
}

apply plugin: "com.github.johnrengelman.shadow"

Learn how to apply plugins to subprojects