2025-09-10 15:35:07 +08:00
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
2025-09-10 17:33:26 +08:00
|
|
|
val mavenLocalPath = rootProject.file("../../android/mavenLocal")
|
2025-09-22 11:12:45 +08:00
|
|
|
// println("Maven local path: ${mavenLocalPath.absolutePath}")
|
|
|
|
|
// println("Maven local exists: ${mavenLocalPath.exists()}")
|
2025-09-10 17:33:26 +08:00
|
|
|
|
|
|
|
|
maven { url = uri(mavenLocalPath) }
|
|
|
|
|
|
2025-09-10 15:35:07 +08:00
|
|
|
maven { url = uri("https://maven.aliyun.com/repository/public") }
|
|
|
|
|
maven { url = uri("https://maven.aliyun.com/repository/google") }
|
|
|
|
|
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
|
|
|
|
|
maven { url = uri("https://maven.aliyun.com/repository/central") }
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|