```tasks { "build" { gradle.includedBu...
# gradle
x
Copy code
tasks {
    "build" {
        gradle.includedBuilds.forEach { dependsOn(it.task(":${this.name}")) }
    }
    "clean" {
        gradle.includedBuilds.forEach {
            dependsOn(it.task(":${this.name}"))
        }
    }
    "wrapper" {
        gradle.includedBuilds.forEach {
            dependsOn(it.task(":${this.name}"))
        }
    }
}
anyone know how I could covert the inline lambda's to a single reference? e.g
val delegateToAll = { gradle.includedBuilds.forEach { dependsOn(it.task(":${this.name}")) }