Gradle配置Http代理

如果需要通过代理下载依赖及包装器,请在gradle.properties文件和gradle/wrapper/gradle-wrapper.properties文件中添加以下内容

如果需要全局设置这些属性,请将其添加到USER_HOME/.gradle/gradle.properties文件中

1
2
3
4
5
6
7
8
9
10
11
12
13
14
systemProp.proxySet=“true”
systemProp.http.keepAlive=“true”
systemProp.http.proxyHost=host
systemProp.http.proxyPort=port
systemProp.http.proxyUser=username
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=local.net|some.host.com

systemProp.https.keepAlive=“true”
systemProp.https.proxyHost=host
systemProp.https.proxyPort=port
systemProp.https.proxyUser=username
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=local.net|some.host.com

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :