‘compileJava.options.encoding’ seems to be ignored for multiproject.
I got an error message of “java.nio.charset.UnsupportedCharsetException: aaaaaaaaaaaaaa” when I set compileJava.options.encoding = ‘aaaaaaaaaaaaaa’ for a single project. But no any errors occur for a multiproject on both of subprojects in parent project or property in subproject.
Any helps? Thanks!
My environment:
Gradle 2.4 + JVM 1.8.0_45 + OS Windows 8.1 6.3 amd64 + cygwin
how did you configure this in your multiproject build? you have to set it for each project in your multiproject build. it is not enough to set it just on the root level.
I tried to set compileJava.options.encoding with aaaaa only in sub project. But the subproject compileJava task does not fail. It looks like the default encoding is used to compile java classes.
weired. I am not able to reproduce this. The task will only not fail from my experience if you havn’t provided any sources as the task is then skipped and marked as up-to-date. Can you provide a small reproducible example?