I see this issue has arisen a couple of times already.
As suggested in some of those discussions, I have a gradle.properties file in my build folder with the proxy settings. I’ve also replaced lib\http-client.jar and lib\http-core.jar with the latest versions from Apache.
If I run gradlew, it correctly downloads the Gradle distribution, which it wouldn’t do until I put a gradle.properties file in the build folder. So the proxy settings appear to be acceptable to Gradle.
The exceptions start when the maven repositories are required. Here’s an example:
Could not resolve org.spockframework:spock-core:0.7-groovy-2.0.
Required by:
:geb-example-gradle:unspecified
Could not GET ‘http://repo1.maven.org/maven2/org/spockframework/spock-core/0.7-groovy-2.0/spock-core-0.7-groovy-2.0.pom’.
org.apache.http.client.ClientProtocolException (no error message)
Here’s the wrapper task from build.gradle, FWIW:
task wrapper(type: Wrapper) {
gradleVersion = ‘1.5’ }