buildscript { ext.kotlin_version = '1.8.21' repositories { google() jcenter() } ext.appCompatVersion = '1.1.0' // for background_fetch dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.android.tools.build:gradle:7.1.2' // for background_fetch } } allprojects { repositories { google() jcenter() mavenCentral() // mavenLocal() // for FDroid maven { url "${project(':background_fetch').projectDir}/libs" } } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir }