Search Gradle plugins

com.github.johnrengelman.shadow

A Gradle plugin for collapsing all dependencies and project code into a single Jar file.

https://github.com/johnrengelman/shadow

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects