allprojects { repositories { maven { url 'https://maven.aliyun.com/repository/public/' } google() mavenCentral() maven { url "https://www.jitpack.io" } } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir }