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