Search Gradle plugins

Version 1.0.0-rc-1

Created 05 April 2022.

- Raise minimum supported Gradle version to 4.10.3
- Auto-apply `java-gradle-plugin` plugin
- Auto-apply `maven-publish` plugin (always used for publication metadata generation)
- Automate published artifact signing, if the `signing` plugin is applied
- Automatically publish the jar produced by the `shadowJar` task, as the main artifact, if the `com.github.johnrengelman.shadow` is applied (requires minimum Gradle version of 6.0.1)
- Remove `pluginBundle.plugins` block, use `gradlePlugin.plugins` instead
- Add `pluginBundle.pluginTags` map to enable per-plugin tags (for pre Gradle 7.5 versions, where `gradlePlugin.plugins` doesn't yet allow individual tags)
- Remove `mavenCoordinates` block, use maven publication GAV instead
- Remove `withDependencies` block, set Java component dependencies instead

Using the plugins DSL:

plugins {
  id "com.gradle.plugin-publish" version "1.0.0-rc-1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.gradle.publish:plugin-publish-plugin:1.0.0-rc-1"
  }
}

apply plugin: "com.gradle.plugin-publish"

Using the plugins DSL:

plugins {
  id("com.gradle.plugin-publish") version "1.0.0-rc-1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.gradle.publish:plugin-publish-plugin:1.0.0-rc-1")
  }
}

apply(plugin = "com.gradle.plugin-publish")

Learn how to apply plugins to subprojects