how do we build gradle with proxy settings … Tried changing the gradle.properties files to correct host, user and port. IS there any other place that i need to change the proxy settings?(Even my ENV proxy variables are set)
See “Accessing the web via a proxy” in the Gradle User Guide. Also double-check that you are using the correct proxy settings (e.g. by testing them in a browser). If that doesn’t solve it, please paste the output of ‘gradle -v’ (wrapped in an HTML code block), describe in detail how you are configuring the proxy in Gradle, what command you are issuing, and what outcome you see (along with any output you get).
Output of gradle -v
------------------------------------------------------------
Gradle 1.5
------------------------------------------------------------
Gradle build time: Wednesday, March 27, 2013 1:51:06 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.6.0_22 (Sun Microsystems Inc. 20.0-b11)
OS: Linux 2.6.32-220.el6.x86_64 amd64
This is the error I am getting when trying to build using ./gradlew clean build
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve nl.javadude.gradle.plugins:license-gradle-plugin:0.6.1.
Required by:
:eureka:1.1.121-SNAPSHOT
Could not GET 'http://repo1.maven.org/maven2/nl/javadude/gradle/plugins/license-gradle-plugin/0.6.1/license-gradle-plugin-0.6.1.pom'.
http://proxy-server-url.com
Could not GET 'http://dl.bintray.com/content/netflixoss/external-gradle-plugins/nl/javadude/gradle/plugins/license-gradle-plugin/0.6.1/license-gradle-plugin-0.6.1.pom'.
http://proxy-server-url.com
Could not resolve com.mapvine:gradle-cobertura-plugin:0.1.
Required by:
:eureka:1.1.121-SNAPSHOT
Could not GET 'http://repo1.maven.org/maven2/com/mapvine/gradle-cobertura-plugin/0.1/gradle-cobertura-plugin-0.1.pom'.
http://proxy-server-url.com
Could not GET 'http://dl.bintray.com/content/netflixoss/external-gradle-plugins/com/mapvine/gradle-cobertura-plugin/0.1/gradle-cobertura-plugin-0.1.pom'.
http://proxy-server-url.com
Could not resolve gradle-release:gradle-release:1.1.5.
Required by:
:eureka:1.1.121-SNAPSHOT
Could not GET 'http://repo1.maven.org/maven2/gradle-release/gradle-release/1.1.5/gradle-release-1.1.5.pom'.
http://proxy-server-url.com
Could not GET 'http://dl.bintray.com/content/netflixoss/external-gradle-plugins/gradle-release/gradle-release/1.1.5/gradle-release-1.1.5.pom'.
http://proxy-server-url.com
Could not resolve org.ajoberstar:gradle-git:0.5.0.
Required by:
:eureka:1.1.121-SNAPSHOT
Could not GET 'http://repo1.maven.org/maven2/org/ajoberstar/gradle-git/0.5.0/gradle-git-0.5.0.pom'.
http://proxy-server-url.com
Could not GET 'http://dl.bintray.com/content/netflixoss/external-gradle-plugins/org/ajoberstar/gradle-git/0.5.0/gradle-git-0.5.0.pom'.
http://proxy-server-url.com
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I have followed the exact procedure mentioned in
Accessing the web via a proxy
Hard to say from here what the problem is. Many Gradle users go through proxies without any problems. What authentication does your proxy server support? Have you tested the proxy settings in a browser? Have you checked the debug log (’–debug’)? Have you tried with the latest Gradle version?
Hi I have tested the proxy settings in the browser, they work for some of the URL’s in the above stack trace and do not work for others. I have also tried the debug log but could not make much out of it except that its hitting a snag at the proxy layer. Unfortunately the application we are working with does not yet seem to support the latest gradle version and looks for gradle 1.5 specifically.