You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publishing Gradle plugins currently requires different plugins depending on whether one wants to publish to the Plugin Portal or a custom, e.g. company-internal, repository. For the former purpose, there’s the Plugin Publishing Plugin (com.gradle.plugin-publish); for the latter, there’s the Gradle Plugin Development Plugin (java-gradle-plugin).
When a project wants to publish Gradle plugins to both the Plugin Portal and a custom Maven repository or simply use the Gradle Plugin Development Plugin to generate the plugin descriptors, its build script currently requires some duplication:
the plugin IDs have to be duplicated in the plugins blocks of gradlePlugin and pluginBundle
the maven coordinates have to customized twice (in mavenCoordinates of pluginBundle and in the pluginMaven publication).
Moreover, the Plugin Publishing Plugin generates a separate POM file and does not take into account any customizations made to the POM of the main publication added by the Gradle Plugin Development Plugin.
Goal
Simplify publishing to the Plugin Portal and a custom repository to avoid duplication and enable reuse of POM customization.
The text was updated successfully, but these errors were encountered:
From the Design Spec:
Context
Publishing Gradle plugins currently requires different plugins depending on whether one wants to publish to the Plugin Portal or a custom, e.g. company-internal, repository. For the former purpose, there’s the Plugin Publishing Plugin (
com.gradle.plugin-publish
); for the latter, there’s the Gradle Plugin Development Plugin (java-gradle-plugin
).When a project wants to publish Gradle plugins to both the Plugin Portal and a custom Maven repository or simply use the Gradle Plugin Development Plugin to generate the plugin descriptors, its build script currently requires some duplication:
gradlePlugin
andpluginBundle
pluginBundle
and in thepluginMaven
publication).Moreover, the Plugin Publishing Plugin generates a separate POM file and does not take into account any customizations made to the POM of the main publication added by the Gradle Plugin Development Plugin.
Goal
Simplify publishing to the Plugin Portal and a custom repository to avoid duplication and enable reuse of POM customization.
The text was updated successfully, but these errors were encountered: