Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
allprojects {
|
||||
repositories {
|
||||
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)
|
||||
// Workaround: ältere Plugins (z. B. on_audio_query_android) deklarieren
|
||||
// keinen namespace, den AGP 8+ verlangt. Aus der group ableiten.
|
||||
// Muss vor evaluationDependsOn registriert werden (sonst schon evaluiert).
|
||||
afterEvaluate {
|
||||
val androidExt = extensions.findByName("android") as? com.android.build.gradle.BaseExtension
|
||||
if (androidExt != null && androidExt.namespace == null) {
|
||||
androidExt.namespace = project.group.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(":app")
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
delete(rootProject.layout.buildDirectory)
|
||||
}
|
||||
Reference in New Issue
Block a user