Search Gradle plugins

com.gradle.plugin-publish

Featured CC-compatible

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.2.0

Created 09 September 2026.

Updates the bundled Compatibility Plugin from version 1.0.0 to 1.1.0, adding the ability to declare compatibility with Isolated Projects. Note: this version renames the artifact. Use 2.2.1 instead.

Gradle features compatibility:
Configuration cache
(Incubating) Isolated Projects

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.gradle.plugin-publish") version "2.2.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.2.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.2.0")
      }
    }
    
    apply(plugin = "com.gradle.plugin-publish")
  • Applying plugins to all subprojects .