gradle/wrapper/gradle-wrapper.properties
本地安装gradle工具,配置环境变量
手动建init.gradle文件,仓库地址用国内的资源路径覆盖
allprojects {
repositories {
mavenLocal()
maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" }
maven { name "Bstek" ; url "http://nexus.bsdn.org/content/groups/public/" }
mavenCentral()
}
buildscript {
repositories {
maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
maven { name "Bstek" ; url 'http://nexus.bsdn.org/content/groups/public/' }
maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
}
}
}
配置gradle用户路径,放置下载的依赖
idea需要的gradle包放置用户库路径下
idea配置