Thank you!
It was actually the reverse of this situation, Gradle was trying to use the proxy to access a local resource.
I added the following line:
‘systemProp.http.nonProxyHosts=*.domain.com|localhost|testlab3’
to my ~/.gradle/gradle-wrapper.properties and got it fixed.