buildscript { repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle:7.1.3") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21") } } allprojects { tasks.withType { val compilerArgs = options.compilerArgs compilerArgs.add("-Xlint:unchecked") compilerArgs.add("-Xlint:deprecation") } } tasks.register("clean", Delete::class) { delete(rootProject.buildDir) }