gradle behind proxy

How to resolve external dependencies behind proxy with gradle…

To use gradle behind a proxy, add the properties below to your (existing) gradle.properties, at the root of your project where your build.gradle file lives.

gradle.properties:

1
2
3
4
5
systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

Any questions, feedback, comment?