- Create gradle.properties files in the following directory if not yet existing:
<USER_HOME>/.gradle
- Add the following entries for http proxy configuration in the gradle.properties file:
systemProp.http.proxyHost=<PROXY_HOST> systemProp.http.proxyPort=<PROXY_PORT> systemProp.http.proxyUser=<PROXY_USERNAME> systemProp.http.proxyPassword=<PROXY_PASSWORD> systemProp.http.nonProxyHosts=<NON_PROXY_HOSTS>
Note: <NON_PROXY_HOSTS> is delimited by pipe symbol (e.g. localhost|*.test.net)
Note: If https proxy configuration is needed use the same entries except that all http will must be replaced with https (e.g. systemProp.https.proxyHost).
Leave a Reply