37 lines
1016 B
Plaintext
37 lines
1016 B
Plaintext
//buildscript {
|
|
// repositories {
|
|
// // 将 google() 和 mavenCentral() 替换或放在后面
|
|
// maven { url = uri("https://maven.aliyun.com/repository/google") }
|
|
// maven { url = uri("https://maven.aliyun.com/repository/public") }
|
|
// google()
|
|
// mavenCentral()
|
|
// }
|
|
//}
|
|
//
|
|
//allprojects {
|
|
// repositories {
|
|
// maven { url = uri("https://maven.aliyun.com/repository/google") }
|
|
// maven { url = uri("https://maven.aliyun.com/repository/public") }
|
|
// google()
|
|
// mavenCentral()
|
|
// }
|
|
//}
|
|
|
|
val newBuildDir: Directory =
|
|
rootProject.layout.buildDirectory
|
|
.dir("../../build")
|
|
.get()
|
|
rootProject.layout.buildDirectory.value(newBuildDir)
|
|
|
|
subprojects {
|
|
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
|
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
|
}
|
|
subprojects {
|
|
project.evaluationDependsOn(":app")
|
|
}
|
|
|
|
tasks.register<Delete>("clean") {
|
|
delete(rootProject.layout.buildDirectory)
|
|
}
|