When running gradlew javadoc
, Gradle is unable to generate javadocs, failing with javadoc: error - cannot read Input length = 1
in the :javadoc
task.
Workaround:
After searching ways to fix this, I found that passing -Dfile.encoding=UTF-8
to Gradle makes it work correctly. I think this should not be needed.
Environment:
Can't reproduce with Adopt OpenJDK
Afaik mappingpoet is always outputting .java files in utf8 as that's javapoet's default behavior. Not sure what part uses other encoding.
Do you still have this issue?
Tested right now in 8276930, not failing anymore.
Most helpful comment
Tested right now in 8276930, not failing anymore.