Using configuration avoidance API: the way to create a new task and configure it:
val someLongTaskName by tasks.registering {
// configure action here
}
while the way to configure an existing task:
val anotherVeryLongTaskName = tasks.named("anotherVeryLongTaskName") {
// configure action here
}
In the latter case I'd rather like not to repeat myself and use something similar to:
val anotherLongTaskName = by tasks.naming {
// configure action here
}
Is it possible?