publish-plugin icon indicating copy to clipboard operation
publish-plugin copied to clipboard

Support Nexus Pro 3

Open sradi opened this issue 1 year ago • 3 comments

Hi,

io.github.gradle-nexus.publish-plugin fails with http 404, when I try to use it with Nexus Pro 3:

Execution failed for task ':initializeReleaseStagingRepository'.
> Failed to load staging profiles, server at https://<nexusProUrl>/repository/<repoName/ responded with status code 404, body:
  <!DOCTYPE html>
  <html lang="en">
  <head>
    <title>404 - Sonatype Nexus Repository</title>
...

The REST API of Nexus Pro 3 (3.63.0-01) doesn't seem to offer any endpoint for stagingProfiles. Instead, one is supposed to tag artifacts and stage them by moving them to another repository (/v1/staging/move/{destination}?tag=...).

Do I assume correctly, that this Plugin is only compatible with Nexus Pro 2.x? If this plugin could offer to add a tag to each published artifact, this would help a lot for staging or dropping a set of artifacts.

sradi avatar Feb 08 '24 18:02 sradi