What is the kotlin Equivalent of the groovy statement
build.gradle
task clean(type: Delete) { delete rootProject.buildDir }
in build.gradle.kts
Try this:
tasks.register("clean").configure { delete(rootProject.buildDir) }