allprojects { repositories { google() mavenCentral() } configurations.all { resolutionStrategy { eachDependency { if ((requested.group == "androidx.work") && (requested.name.startsWith("work-runtime"))) { useVersion("2.9.1") } } } } } rootProject.buildDir = "../build" subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(":app") } tasks.register("clean", Delete) { delete rootProject.buildDir }