Search Gradle plugins

Version 2.4.0

Created 23 July 2015.

Add the Apache v2 license to the pom

Using the plugins DSL:

plugins {
  id "nebula.apache-license-pom" version "2.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.netflix.nebula:nebula-publishing-plugin:2.4.0"
  }
}

apply plugin: "nebula.apache-license-pom"

Using the plugins DSL:

plugins {
  id("nebula.apache-license-pom") version "2.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.netflix.nebula:nebula-publishing-plugin:2.4.0")
  }
}

apply(plugin = "nebula.apache-license-pom")

Learn how to apply plugins to subprojects