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