Search code examples
grailsgrails-3.3

Grails 3.3.5 -Dfile.encoding=UTF-8 not working?


I find grails -Dfile.encoding=UTF-8 war is not working for my project, but gradle -Dfile.encoding=UTF-8 assemble is working. Maybe grails not pass system properties to gradle ? And what should I do ?

Thanks.


Solution

  • I solved this issue by myself. Just add org.gradle.jvmargs='-Dfile.encoding=UTF-8' to gradle.properties