I didn’t find really hot information when googling for ‘gradle’ and ‘ntlm proxy’. There are only bits of information about running gradle behind a corporate proxy, especially when this proxy is using NTLM-v2. The official documentation treats the problem short and crisp, but if gradle still complains about something like
Could not GET ‘https://jcenter.bintray.com/org/slf4j/…
and you’re using cntlm as your proxy then this command line might be helpful:
gradle test -DproxySet=true -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3128
(assuming you are on a Linux box with cntlm installed, using default values for proxy name and port). Note the “https” settings. Missing downloads were loaded successfully with these settings. You also might put additional configs in your gradle.properties with respective https entries:
1 2 3 4 5 6 |
systemProp.proxySet=true systemProp.http.proxyHost=127.0.0.1 systemProp.http.proxyPort=3128 systemProp.https.proxyHost=127.0.0.1 systemProp.https.proxyPort=3128 systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost |