Search Gradle plugins

com.gradle.plugin-publish

Owner: Gradle

Publish plugins to the Gradle Plugin Portal Report issues: https://github.com/gradle/plugin-portal-requests

https://plugins.gradle.org/docs/publish-plugin

Version 2.0.0 (latest)

Created 03 September 2025.

- The plugin is now compatible with Configuration Cache. Note that the signing task is compatible with Configuration Cache only starting from Gradle 8.1, so it's required to use at least Gradle 8.1.1 for signed publications if you want Configuration Cache compatibility. - Provider API is now used for all configuration properties. There is no impact for users and straightforward scenarios will continue to work as before, but you'll need to update your build scripts if you did something advanced. - The support for old Gradle versions has been removed. The minimum supported Gradle version is now 7.4. - Bundled dependencies have been updated, the plugin no longer depends on commons-io.

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.gradle.plugin-publish") version "2.0.0"
}

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