repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
mavenCentral()
}
顺序分别是:
先在本地找,本地没有,再到阿里的仓库上找,还没有再去maven中央仓库找。
然后执行
gradle -q showRepos
任务,如果输出了刚刚配置的地址就说明修改成功,如下:
gradle -q showRepos
repository: maven ('http://maven.aliyun.com/nexus/content/groups/public')