30 lines
721 B
Groovy
30 lines
721 B
Groovy
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|||
|
|
|
|||
|
|
// 非常重要,根目录的build.gradle头部加入自定义gradle,相当于layout布局中include
|
|||
|
|
apply from : "app_config.gradle"
|
|||
|
|
|
|||
|
|
buildscript {
|
|||
|
|
repositories {
|
|||
|
|
google()
|
|||
|
|
jcenter()
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
dependencies {
|
|||
|
|
classpath 'com.android.tools.build:gradle:3.4.1'
|
|||
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|||
|
|
// in the individual module build.gradle files
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
allprojects {
|
|||
|
|
repositories {
|
|||
|
|
google()
|
|||
|
|
jcenter()
|
|||
|
|
maven { url 'https://jitpack.io' }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
task clean(type: Delete) {
|
|||
|
|
delete rootProject.buildDir
|
|||
|
|
}
|