how to convert Groovy's `tasks.withType(AbstractCo...
# gradle
t
how to convert Groovy's
tasks.withType(AbstractCompile)*.options*.encoding = tasks.withType(GroovyCompile)*.groovyOptions*.encoding = 'UTF-8'
to Kotlin ?
v
For example
Copy code
tasks.withType<JavaCompile>().configureEach {
    options.encoding = "UTF-8"
}
tasks.withType<GroovyCompile>().configureEach {
    options.encoding = "UTF-8"
    groovyOptions.encoding = "UTF-8"
}
t
thanks!