gradle-aggregate-javadocs-plugin icon indicating copy to clipboard operation
gradle-aggregate-javadocs-plugin copied to clipboard

Unable to change character encoding.

Open nathros opened this issue 8 years ago • 1 comments

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?

nathros avatar Oct 31 '16 16:10 nathros

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.

ddingel avatar Jun 27 '17 12:06 ddingel