Gradlew behind a proxy

后端 未结 16 1476
一个人的身影
一个人的身影 2020-12-04 12:26

I have a sample from Gaelyk (called Bloogie) and it is using gradlew.

I am behind a proxy.

I\'ve read gradle docs and found this:

gradle.properties

16条回答
  •  既然无缘
    2020-12-04 12:53

    I had same problem and first thing I did was to create gradle.properties. I had not such as file so I should create it with following content:

    systemProp.http.proxyHost=proxy
    systemProp.http.proxyPort=port
    systemProp.http.nonProxyHosts=domainname|localhost
    systemProp.https.proxyHost=proxy
    systemProp.https.proxyPort=port
    systemProp.https.nonProxyHosts=domainname|localhost
    

    When I added them gradlew command works properly behind corporate proxy. I hope that it can be useful.

提交回复
热议问题