allprojects { repositories { google() mavenCentral() maven("https://maven.aliyun.com/repository/public") maven("https://maven.aliyun.com/repository/gradle-plugin") maven("https://maven.aliyun.com/repository/google") maven("https://maven.aliyun.com/repository/jcenter") } } 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") } // The Gitea U-Verify plugin still targets an older Android Gradle Plugin and // declares only the manifest package. AGP 8 requires an explicit namespace; // keep the dependency as a Git package and supply its published namespace here. subprojects { plugins.withId("com.android.library") { if (project.name == "umeng_verify_sdk") { val androidExtension = extensions.getByName("android") androidExtension.javaClass .getMethod("setNamespace", String::class.java) .invoke(androidExtension, "com.umeng.umeng_verify_sdk") } } } tasks.register("clean") { delete(rootProject.layout.buildDirectory) }