Android-Gradle-KTS icon indicating copy to clipboard operation
Android-Gradle-KTS copied to clipboard

Consider using Gradles Kotlin container extension syntax

Open G00fY2 opened this issue 3 years ago • 0 comments

I would recommend using Gradles Task Container Extension functions.

So instead of

tasks.register("clean", Delete::class.java) {
    delete(rootProject.buildDir)
}

you can write

tasks.register<Delete>("clean") {
    delete(rootProject.buildDir)
}

G00fY2 avatar Nov 27 '21 14:11 G00fY2