On 19/11/2011, at 11:19 AM, gavares wrote:
> After upgrading to gradle-milestone-6, I can no longer authenticate against
> my Nexus repo via https. Code that worked in milestone-5:
> repositories {
> ivy {
> name localBuildCache
> url "$workspaceRoot/localBuildCache"
> }
>
> maven {
>
> org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Sonatype
> Nexus Repository Manager", "nexus.apptio.lan", nexusUser, nexusPassword);
>
> org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Sonatype
> Nexus Repository Manager", "nexus.apptio.lan:8443", nexusUser, nexusPassword);
>
> url nexusRepoUrl
> }
> }
> This code no longer works in milestone-6. A snippet from gradle -b build
> output:
> basic authentication scheme selected
> No credentials available for BASIC 'Sonatype Nexus Repository
> Manager'@nexus.apptio.lan:8443
> basic authentication scheme selected
> No credentials available for BASIC 'Sonatype Nexus Repository
> Manager'@nexus.apptio.lan:8443
> basic authentication scheme selected
> No credentials available for BASIC 'Sonatype Nexus Repository
> Manager'@nexus.apptio.lan:8443
> In addition, the example code from the nexus documentation here :
> maven {
> name "Nexus Repo"
> credentials {
> userName = nexusUser
Should be lowercase 'username'.
And we should fix Gradle to let you know you've made a typo.
> password = nexusPassword
> }
> url "https://${nexusHost}:${nexusPort}/nexus/content/groups/public/"
> }
> gives the same error. More detailed output from gradle -d :
> 16:03:12.399 [DEBUG] [org.apache.commons.httpclient.HttpMethodDirector]
> Authorization required
> 16:03:12.402 [DEBUG]
> [org.apache.commons.httpclient.auth.AuthChallengeProcessor] Supported
> authentication schemes in the order of preference: [ntlm, digest, basic]
> 16:03:12.403 [DEBUG]
> [org.apache.commons.httpclient.auth.AuthChallengeProcessor] Challenge for
> ntlm authentication scheme not available
> 16:03:12.403 [DEBUG]
> [org.apache.commons.httpclient.auth.AuthChallengeProcessor] Challenge for
> digest authentication scheme not available
> 16:03:12.404 [INFO]
> [org.apache.commons.httpclient.auth.AuthChallengeProcessor] basic
> authentication scheme selected
> 16:03:12.404 [DEBUG]
> [org.apache.commons.httpclient.auth.AuthChallengeProcessor] Using
> authentication scheme: basic
> 16:03:12.408 [DEBUG]
> [org.apache.commons.httpclient.auth.AuthChallengeProcessor] Authorization
> challenge processed
> 16:03:12.409 [DEBUG] [org.apache.commons.httpclient.HttpMethodDirector]
> Authentication scope: BASIC 'Sonatype Nexus Repository
> Manager'@nexus.apptio.lan:8443
> 16:03:12.409 [DEBUG] [org.apache.commons.httpclient.HttpMethodDirector]
> Credentials required
> 16:03:12.410 [DEBUG] [org.apache.commons.httpclient.HttpMethodDirector]
> Credentials provider not available
>
> Wondering if I should be using a different method for https authentication in
> milestone 6?
> View this message in context: Gradle milestone 6 doesn't seem to appear
> Credentials
> Sent from the gradle-user mailing list archive at Nabble.com.
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com