I am trying to build a sample project that is included in gradle distribution. When I do gradle build
I get this error:
Could not resolve commons-collections:commons-collections:3.2.1.
Required by:
:application:1.0.2
> Could not HEAD 'https://repo1.maven.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom'.
> Connection to https://repo1.maven.org refused
I work behind a proxy. I tried the things mentioned here: gradle documentation for proxy configuration but I get the same error. Can you help?
Add gradle.properties file next to the .gradle file with this content :
systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With