I am not sure if this will solve anyone’s problem, but it worked for me. I put the following configuration within a gradle.properties file in my USER/.gradle directory:
systemProp.http.auth.ntlm.domain=myCompany # replace with your company's domain
systemProp.http.proxyHost=0.0.0.0 # replace with your proxy's host
systemProp.http.proxyPort=8080 # replace with your proxy's port
systemProp.http.proxyUser=myUsername # replace with your username
systemProp.http.proxyPassword=myPassword # replace with your password
systemProp.http.nonProxyHosts=localhost
# Same thing for https
systemProp.https.auth.ntlm.domain=myCompany
systemProp.https.proxyHost=0.0.0.0
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=myUsername
systemProp.https.proxyPassword=myPassword
systemProp.https.nonProxyHosts=localhost
The important factor for me was not using the keepAlive system property, which caused my connections to hang. I’d consider copying and pasting the above, and if you have other properties you need/want then slowly add them to the file while testing each one.