In Groovy, I overwrite a task like this:
task jar(overwrite: true) {
...
}
How do I do that with Kotlin-dsl? I know that I can create a task like this:
tasks {
val jar by creating {
...
}
}
but I can't find the equivalent way to declare it as overwrite, this leads to an error