tateisu
tasks.withType(AbstractCompile)*.options*.encoding = tasks.withType(GroovyCompile)*.groovyOptions*.encoding = 'UTF-8'
Vampire
tasks.withType<JavaCompile>().configureEach { options.encoding = "UTF-8" } tasks.withType<GroovyCompile>().configureEach { options.encoding = "UTF-8" groovyOptions.encoding = "UTF-8" }
A modern programming language that makes developers happier.