buildscript { repositories { google() jcenter() gradlePluginPortal() } dependencies { classpath("com.android.tools.build:gradle:4.0.0") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72") classpath("org.jlleitschuh.gradle:ktlint-gradle:9.2.1") } } apply(plugin = "org.jlleitschuh.gradle.ktlint") allprojects { repositories { google() jcenter() maven(url = "https://jitpack.io") } } tasks.register("clean", Delete::class.java) { delete(rootProject.buildDir) }