-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Gradle publish fails #351
Comments
Hey :) Did you associate a proper path with |
yes, m with /* |
Could you enable debug in configuration? As far as I remember, I've added some extra logging during the authorization. |
Add |
Nah, I always forget that Gradle does not use basic auth by default. Just add it below the credentials: credentials {
// [...]
}
authentication {
basic(BasicAuthentication)
} Sorry for such a slow response, I'm kinda busy today 😅 |
Does your I've added a log statement to print the response message for authentication error during deploy, check this build: |
Let's try one more time 🤔 |
It looks like the associated path to the token does not really match the uri: And you have enabled this option in configuration?
|
Oh, wait, I didn't notice that you have asterisk after slash. Take a look at this table: As you can see, there is no path that may end with |
Thank you! Setting a token with / worked. @DeadlyMC you can close this and I'll gen new keys |
I've marked it as a documentation issue and I'll close it when I add |
Are you sure it is not caused by Cloudflare cache? |
As I thought, it is a known bug, that you can't use apostrophe:
You should be able to replace it with |
Escaping it worked, thanks! |
Thank you! I'm able to publish too. Is the basic authentication bit imp? I was able to push without it |
I'm not sure when Gradle uses other auth method, but there was an issue related to this: #171 (comment) |
I'm trying to deploy some files to a maven repo using the maven-publish gradle plugin with no luck. It always errors with a status 401 : Unauthorized.
This is the gradle publish task:
The alias and token aren't wrong as ive used them in the web login without any issues.
The text was updated successfully, but these errors were encountered: