gradle-aggregate-javadocs-plugin
gradle-aggregate-javadocs-plugin copied to clipboard
Unable to change character encoding.
My code contains non-Cp1252 characters. The javadoc for each project can be created with no problems by using the following code.
allprojects { javadoc { options { locale = 'en_GB' encoding = 'UTF-8' } } Which sets the javadoc character encoding to UTF-8 for all projects. All individual docs are created but fails at the :aggregateJavadocs phase. Is there a way to set the encoding for the plugin?
For me changing this like:
tasks.withType(Javadoc) { │ options.encoding = 'UTF-8' }
within allprojects fixed this. Another way, that worked was to set JAVA_TOOL_OPTIONS to "-Dfile_encoding=UTF8". But I think the gradle change is better.