I have a task:
task info<<{ println "Gradle — система автоматической сборки, построенная на принципах Apache Ant и Apache Maven, но предоставляющая DSL на языке Groovy вместо традиционной XML-образной формы представления конфигурации проекта." }
when I use the command:
gradle info -Dfile.encoding=UTF-8
The text is not shown properly. How to fix it? Thanks.
I use next setting in build.gradle
and it works fine for me:
compileJava.options.encoding = 'UTF-8' tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With