赞
踩
ps →_→ 点点我下载:
ps:在该目录下创建文件 init.gradle
init.gradle 填写
allprojects{
repositories {
def REPOSITORY_URL = 'https://maven.aliyun.com/nexus/content/groups/public/'
all { ArtifactRepository repo ->
if(repo instanceof MavenArtifactRepository){
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2') || url.startsWith('https://jcenter.bintray.com/')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $REPOSITORY_URL."
remove repo
}
}
}
maven {
url REPOSITORY_URL
}
}
}
note: maven { url "https://maven.aliyun.com/repository/public/" }
配置HTTPS\s代理
systemProp.https.proxyHost=www.example.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.example.com|localhost
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。