Gradle can't resolve dependencies through my http proxy

前端 未结 2 1423
暗喜
暗喜 2021-01-17 23:53

when I try to run gradle dependencies on my computer I am getting a 407 status code \"Proxy Authentication Required.\"

I created a gradle.properties fil

相关标签:
2条回答
  • 2021-01-18 00:35

    Some dependencies are fetched from servers that run over HTTPS so you need to specify values for https properties as well:

    systemProp.https.proxyHost=http-proxy.nwie.net
    systemProp.https.proxyPort=8080
    systemProp.https.proxyUser=http-proxy.nwie.net/%USERNAME%
    systemProp.https.proxyPassword=%PASSWORD%
    
    0 讨论(0)
  • 2021-01-18 00:49

    Is it an NTLM proxy (Usually found in a windows environment with active directory). If so, You may have to specify the domain name with the username in the format domain/username. Take a look at this link.

    http://www.gradle.org/docs/current/userguide/build_environment.html

    0 讨论(0)
提交回复
热议问题