Gradlew behind a proxy

后端 未结 16 1420
一个人的身影
一个人的身影 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:50

    Setting SSl proxy worked for me.

    systemProp.http.proxyHost=proxy.yourproxysite.com
    systemProp.http.proxyPort=8080
    systemProp.https.proxyHost=proxy.yourproxysite.com
    systemProp.https.proxyPort=8080
    
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-04 12:55

    Use this in prompt line:

    gradle -Dhttp.proxyHost=***  -Dhttp.proxyPort=*** -Dhttp.proxyUser=**** -Dhttp.proxyPassword=****
    

    Works here!

    0 讨论(0)
  • 2020-12-04 12:55

    This was not working for me at first.
    In my case, I had created what I thought was a USER_HOME/.gradle/gradle.properties file but ended up with a gradle.properties.txt file.

    From the terminal window an ls command will show the full file names in the .gradle folder.

    Then mv gradle.properties.txt gradle.properties

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