32 lines
833 B
Groovy
32 lines
833 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 {
|
||
ext.kotlin_version = '1.3.72'
|
||
repositories {
|
||
google()
|
||
jcenter()
|
||
|
||
}
|
||
dependencies {
|
||
classpath 'com.android.tools.build:gradle:7.0.4'
|
||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||
// 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
|
||
}
|