allprojects { repositories { google() mavenCentral() // Polar's BLE SDK for the Loop (ADR 0030, D34), which Polar publishes // through JitPack alone: asked for Polar's package and nothing else. exclusiveContent { forRepository { maven("https://jitpack.io") } filter { includeGroup("com.github.polarofficial") } } } } 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("clean") { delete(rootProject.layout.buildDirectory) }