赞
踩
- allprojects {
- repositories {
- maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
- }
- }
使用public仓库替代源仓库https://repo1.maven.org/maven2和https://jcenter.bintray.com/
- allprojects{
- repositories {
- def REPOSITORY_URL = 'http://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
- }
- }
- }

仓库名称 | 阿里云仓库地址 | 阿里云仓库地址(老版) | 源地址 |
---|---|---|---|
central | |||
jcenter | |||
public | central仓和jcenter仓的聚合仓 | ||
| |||
gradle-plugin | https://maven.aliyun.com/nexus/content/repositories/gradle-plugin | ||
spring | |||
spring-plugin | https://maven.aliyun.com/nexus/content/repositories/spring-plugin | ||
grails-core | https://maven.aliyun.com/nexus/content/repositories/grails-core | ||
apache snapshots | https://maven.aliyun.com/nexus/content/repositories/apache-snapshots |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。