Quickly add maven CN mirror resources to gradle project by this plugin.
plugins {
id 'com.robothy.cn-repo' version '1.8'
}
This short snippet has the same effect as the below long code block in build.gradle
.
repositories{
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/jcenter/' }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
}