Skip to content

Add task to "Publish or Drop the Deployment" #250

@marcphilipp

Description

@marcphilipp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions