Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Sonatype Portal Publisher API #722

Closed
eygraber opened this issue Feb 11, 2024 · 4 comments · Fixed by #733
Closed

Support Sonatype Portal Publisher API #722

eygraber opened this issue Feb 11, 2024 · 4 comments · Fixed by #733
Labels

Comments

@eygraber
Copy link
Contributor

Looks like Sonatype has a new API in preview for publishing.

@sschuberth
Copy link
Contributor

Also see https://github.com/GradleUp/nmcp.

@gabrielittner
Copy link
Collaborator

I've took a look at it last weekend and I'm planning to have an initial implementation done either this week or next.

kellyrob99 added a commit to kellyrob99/gradle-maven-publish-plugin that referenced this issue Feb 20, 2024
initial implementation of a (not fully tested) client for the portal api
kellyrob99 added a commit to kellyrob99/gradle-maven-publish-plugin that referenced this issue Mar 8, 2024
move api to separate module
gabrielittner added a commit that referenced this issue Mar 10, 2024
* related to #722
initial implementation of a (not fully tested) client for the portal api

* related to #722
move api to separate module

* remove API which fails the build

---------

Co-authored-by: Gabriel Ittner <gabriel.ittner@gmail.com>
gabrielittner pushed a commit that referenced this issue Mar 10, 2024
initial implementation of a (not fully tested) client for the portal api
@gabrielittner
Copy link
Collaborator

Took a while but #733 addresses this.

If you want to already try it out:

  • change version of the plugin to central-portal-SNAPSHOT
  • use SONATYPE_HOST=CENTRAL_PORTAL or publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, ...)
  • set the user name and password from your central portal user token like described in the existing docs

Notes:

  • publishing snapshots is not supported for the central portal
  • the build will currently not fail if the validations on the portal side fail after the upload succeeded

@gabrielittner
Copy link
Collaborator

This is now also available on maven central as version 0.28.0-rc1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants