I’ve met with the fact, that setting with encoding options for my project for gradle in build.gradle, gradle.properties, gradlew, gradlew.bat does nothing in Intellij Idea. When I run task from command line such
it runs ok and the encoding settings that I’ve set in gradlew.bat are implemented. But when I run build for the same task in Intellij Idea it seems that this setting is not set.
I’ve tried many variants to set the jvm property, and the only 3 ways helps me:
- the idea64.vmoptions file where i specified the -Dfile.encoding=utf8 or
- The help - edit custom vm options… with the same specification or
- File - settings - global gradle settings - gradle vm options.
In any of this cases project runs as it meant to run. Without that there is decoding problem. How can I set this param directly in project?