Gradle behind company proxy server connection

Easiest way to get gradle work behind company proxy.

In the root project that used Gradle, create a file gradle.properties , add the following config values.

systemProp.http.proxyHost=proxy.domain
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=username
systemProp.http.proxyPassword=******
systemProp.http.nonProxyHosts=localhost|127.0.0.1
systemProp.https.proxyHost=proxy.domain
systemProp.https.proxyPort=username
systemProp.https.proxyUser=******
systemProp.https.proxyPassword=Jniwr5pm15
systemProp.https.nonProxyHosts=localhost|127.0.0.1

Goto folder /Users/USERID/.gradle or $HOME/.gradle, and place the properties file into that root folder.