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 
http://http://www.gradle.org/dependency_management#sub:maven_repo here  :


  maven {
    name "Nexus Repo"
    credentials {
        userName = nexusUser
        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: 
http://gradle.1045684.n5.nabble.com/Gradle-milestone-6-doesn-t-seem-to-appear-Credentials-tp5005935p5005935.html
Sent from the gradle-user mailing list archive at Nabble.com.

Reply via email to