and also added proxy configuration in the gradle.properties systemProp.proxySet=true systemProp.http.proxyHost=myproxy.com systemProp.http.proxyPort=80 systemProp.http.proxyUser=myusername systemProp.http.proxyPassword=myuserpass
when i run the build i am getting the following error Proxy authentication error: Invalid name provided (Mechanism level: Could not lo ad configuration file C:\WINDOWS\krb5.ini (The system cannot find the file speci fied)) Proxy authentication error: Invalid name provided (Mechanism level: Could not lo ad configuration file C:\WINDOWS\krb5.ini (The system cannot find the file speci fied)) Proxy authentication error: Invalid name provided (Mechanism level: Could not lo ad configuration file C:\WINDOWS\krb5.ini (The system cannot find the file speci fied))
FAILURE: Build failed with an exception.
What went wrong: Could not resolve all dependencies for configuration ‘:testRuntime’. > Could not resolve group:commons-collections, module:commons-collections, versi on:3.2.
Required by:
com.winter:sample:0.0.1-SNAPSHOT
Could not GET ‘http://repo1.maven.org/maven2/commons-collections/commons-co llections/3.2/commons-collections-3.2.pom’. Received status code 407 from server : Proxy Authentication Required > Could not resolve group:junit, module:junit, version:4.+.
Gradle build time: Tuesday, March 13, 2012 4:10:09 PM UTC Groovy: 1.8.6 Ant: Apache Ant™ version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.6.0_23 (Sun Microsystems Inc. 19.0-b09) OS: Windows XP 5.1 x86
For many users, proxy settings work fine. I haven’t heard of this problem before. We needed to update the HttpClient library to get around other problems. Judging from your feedback, the next update (once HttpClient 4.2 has been released) will solve your problem. Thanks for letting us know.
I have just tried the fix suggested above, replace httpclient-4.2.1.jar and httpcore-4.2.1.jar with their 4.2.3.jar equivalents (remembering to rename them with the 4.2.1.jar suffix) and the problem I was experiencing with this was resolved. I also removed the gradle.properties file as this is no longer needed, I assume because Gradle then uses the system proxy settings.