What feature do you want to see added?
When using USER_MANAGED as publishingType, it would be useful to have a second Gradle task available that calls the Publish or Drop the Deployment API. The task should have a --deployment-id parameter that expects the ID of a previous deployment (should be logged by the exising upload task). Similar to the existing publishing task, this task should wait for the deployment to reach the PUBLISHED state.
Context
The JUnit team uses this two-stage approach to validate the artifacts that are about to be published are consumable from Maven, Gradle, etc. by using the temporary staging repository. If that validation passes, we're promoting the deployment to Maven Central. Currently, we're using the JReleaser plugin to accomplish that which provides such a task (via the JRELEASER_MAVENCENTRAL_STAGE env var). However, this is the only bit we use from it and we'd like to replace it with a simpler alternative with fewer dependencies.
Upstream changes
None.
Are you interested in contributing this feature?
Yes, if this is something that you think should be part of the plugin.
What feature do you want to see added?
When using
USER_MANAGEDaspublishingType, it would be useful to have a second Gradle task available that calls the Publish or Drop the Deployment API. The task should have a--deployment-idparameter that expects the ID of a previous deployment (should be logged by the exising upload task). Similar to the existing publishing task, this task should wait for the deployment to reach thePUBLISHEDstate.Context
The JUnit team uses this two-stage approach to validate the artifacts that are about to be published are consumable from Maven, Gradle, etc. by using the temporary staging repository. If that validation passes, we're promoting the deployment to Maven Central. Currently, we're using the JReleaser plugin to accomplish that which provides such a task (via the
JRELEASER_MAVENCENTRAL_STAGEenv var). However, this is the only bit we use from it and we'd like to replace it with a simpler alternative with fewer dependencies.Upstream changes
None.
Are you interested in contributing this feature?
Yes, if this is something that you think should be part of the plugin.