//编译groovy代码时采用 UTF-8 Groovy代码 tasks.withType(GroovyCompile) { groovyOptions.encoding = "MacRoman" } //编译JAVA文件时采用UTF-8 Groovy代码 tasks.withType(Compile) { options.encoding = "UTF-8" }