Search Gradle plugins

nebula.source-jar

Create a sourceJar task to package up the project's source code and add it to the publications

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

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

Add this plugin to your build using the plugins DSL:

plugins {
  id("nebula.source-jar") version "5.1.5"
}

See also:

  • The legacy method of plugin application.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.netflix.nebula:nebula-publishing-plugin:5.1.5")
      }
    }
    
    apply(plugin = "nebula.source-jar")
  • Applying plugins to all subprojects .