build.gradle 599 Bytes
Newer Older
Kevin's avatar
Kevin committed
1
buildscript {
Kevin's avatar
Kevin committed
2
    ext.kotlin_version = '1.6.10'
Kevin's avatar
Kevin committed
3 4
    repositories {
        google()
Kevin's avatar
Kevin committed
5
        mavenCentral()
Kevin's avatar
Kevin committed
6 7 8
    }

    dependencies {
Kevin's avatar
Kevin committed
9
        classpath 'com.android.tools.build:gradle:7.1.2'
Kevin's avatar
Kevin committed
10 11 12 13 14 15 16
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
Kevin's avatar
Kevin committed
17
        mavenCentral()
Kevin's avatar
Kevin committed
18 19 20 21 22 23 24 25 26 27 28
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

张国庆's avatar
张国庆 committed
29
tasks.register("clean", Delete) {
Kevin's avatar
Kevin committed
30 31
    delete rootProject.buildDir
}