-
Notifications
You must be signed in to change notification settings - Fork 26
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
Please make sure that closeAndReleaseRepository task works #131
Comments
Hmm, I don't want to sound like a heldesk guy, but "it works on my machine" (to be precise on my CI server :) ). Today, 3 days ago and earlier. During the aforementioned build there are 2 dummy (but real) Gradle projects released to Sonatype Nexus. They are occasional timeouts, but definitely not "401: Unauthorized". Have you tried to downgrade to the previous version of GNSP that was working for you? Maybe it's just problem with your credentials (especially Nexus access token)? |
Ping @denis-zhdanov. |
I've successfully made a release using Gradle 5.6.1 + nexus-staging-plugin 0.21.1 + nexus-publish 0.3.1 (warning, there's verbose output turned on because I was diagnosing issues with Sonatype OSS Nexus, unrelated to Gradle plugins). Here's build.gradle that was used for that release. |
Great that it worked in the end. What was the reason of initial 401 failure? |
No. I am not @denis-zhdanov. I just added my comment to confirm that GNSP works for someone who is not a GNSP author :) |
Ups, sorry, the original comment was not visible at the time I was writing mine :). |
I tried downgrading to the previous version and it failed for me as well. Also oss nexus web dashboard looks extremely slow when I try to close/release manually - operations take a while and often result in 503 |
@denis-zhdanov 503 is a known issue on the Sonatype side. 401 rather not. I still suspect there is something wrong with the credentials. Can you send me link to the project build.gradle and a CI build? If not, please paste the configuration part related to publishing (maven/maven-publish, GNSP, GNP, etc.) |
I'm facing the same problem. I provide nexus credentials through
My build.gradle
Does this work only with Nexus Repository Manager Pro ? |
suggests the problem with your credentials. However, you set it in the Nevertheless, only credentials are taken from the
where "..." in the URL represents the root path where API is available - for sonatype it is Btw, just to be sure. You use Nexus 2.x, right? |
I was using Nexus 3.20.1. I installed Nexus 2.14.16 today and tried. With Nexus 3 and Nexus 2 both I am able to deploy snapshots successfully to Snapshots repository. However, with Nexus 2 I see the same issue.
I tried adding credentials specifically
Regarding the After adding this in |
TL;TD. Please check gradle-nexus-publish-plugin and report a separate issue there is the problem still occurs. A longer version. To make releasing to Maven Central even easier, I and Marc Phillip (the author of nexus-publish-plugin) combined forces to create a next generation, unified, 2-in-1 plugin - gradle-nexus-publish-plugin. It is a recommended solution, as our development effort will be put in that new plugin. See my blog post and the official migration guide. |
Problem
closeAndReleaseRepository task fails all the time:
It used to work before, failed after all versions were updated (plugin version is 0.21.1; gradle version is 5.6.2)
The text was updated successfully, but these errors were encountered: