Nexus login error after update from 1.0-milestone-5 to 1.0-milestone-6

After update from 1.0-milestone-5 to 1.0-milestone-6 i get the following error: I use password protected Nexus Repository. The credentials are in the gradle.properties file. Switching back to 1.0-milestone-5 it works without error.

Cookie rejected: “$Version=0; rememberMe=deleteMe; $Path=/nexus”. Illegal path attribute “/nexus”. Path of origin: “/content/groups/public/bmuschko/gradle-cargo -plugin/0.3/gradle-cargo-plugin-0.3.pom” Cookie rejected: “$Version=0; rememberMe=deleteMe; $Path=/nexus”. Illegal path attribute “/nexus”. Path of origin: “/content/groups/public/bmuschko/gradle-cargo -plugin/0.3/gradle-cargo-plugin-0.3.pom”

FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve group:bmuschko, module:gradle-cargo-plugin, version:0.3. Required by:

…myapp:1.0.0-SNAPSHOT Cause: Could not GET ‘http://myproxy.my.com/content/groups/public/bmuschko/gradle-cargo-plugin/0.3/gradle-cargo-plugin-0.3.pom’. Received status code 401 fro m server: Unauthorized

  • Try: …

M6 introduces a new syntax for specifying maven repo credentials:

repositories {
    maven {
      credentials {
        username "myusername"
         password "mypassword"
      }
      url 'http://myrepourl/x/y/z'
    }
}

any chance you are still using the old format? If so you would probably end up with a 401 from the server. Naturally the username/password strings above can still be pulled from your gradle.properties file.

Did you manage to solve your iseue?

thx, thts solved