下文中gradle使用省略形式:gd
一:项目(project)中的文件;
1settings.gradle
用来设置gd的属性。就是gd构建项目用到的各种资源或者比如变量之类的。这里用阿里云仓库。
pluginManagement {
repositories {
maven { allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/public/' }
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/google/' }
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/central/' }
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/gradle-plugin/'}
maven {
allowInsecureProtocol = true
url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{
allowInsecureProtocol = true
url 'http://maven.aliyun.com/nexus/content/repositories/jcenter/'}
gr