在USER_HOME/.gradle/下输入init.gradle语句cxd XJ/p all项目{
存储库{
defa liyun _ repository _ URL=‘http://maven.a liyun.com/nexus/content/groups/public’
DFA liyun _ j center _ URL=‘http://maven.a liyun.com/nexus/content/repositories/j center’
all { artifact资源库repo -
(if (repo instance of火辣美女) )
def url=repo.url.toString (
if (URL.starts with ((https://repo1. maven.org/maven2) ) )
project.logger.life cycle ' repository $ { repo.URL } replaced by $ a liyun _ repository _ URL.'
移除重做
}
if (URL.starts with (https://j center.bin tray.com/() ) ) ) ) 0
project.logger.life cycle ' repository $ { repo.URL } replaced by $ a liyun _ j center _ URL.'
移除重做
}
}
}
七{
url ALIYUN_REPOSITORY_URL
url ALIYUN_JCENTER_URL
}
}
}