I tried all suggestions but still couldn’t access maven resource through proxy.
After investigation I found the org.gradle.api.internal.externalresource.transport.http.ntlm.NTLMSchemeFactory is different from where it was copied : http://hc.apache.org/httpcomponents-client-ga/ntlm.html, the flags used by messages are different.
Can you show us how you configure the proxy settings, what Gradle version is used and what is the output of the gradle build (run with -d -s so that we can see the debug level messages and the stack trace). Please gist for stack trace of any long text.