Search Gradle plugins

nebula.shadow-jar

Configures project to use shadowJar artifact instead of jar artifact when users want to replace the jar task

https://github.com/nebula-plugins/nebula-publishing-plugin

Sources: https://github.com/nebula-plugins/nebula-publishing-plugin.git

Version 15.0.3 (latest)

Created 03 February 2020.

Configures project to use shadowJar artifact instead of jar artifact when users want to replace the jar task

Add this plugin to your build using the plugins DSL:

plugins {
  id("nebula.shadow-jar") version "15.0.3"
}

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("nebula.shadow-jar:nebula.shadow-jar.gradle.plugin:15.0.3")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("nebula.shadow-jar")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("nebula.shadow-jar:nebula.shadow-jar.gradle.plugin:15.0.3")
      }
    }
    
    apply(plugin = "nebula.shadow-jar")
  • Applying plugins to all subprojects .