Skip to content

Set encoding of Javadoc and CompileJava tasks to avoid relying on platform's default being UTF-8 #593

Closed
@clydebarrow

Description

@clydebarrow

The presence of non-ascii characters in Javadoc annotations causes failures when executing the spring-restdocs-core:javadoc gradle task.

> Task :spring-restdocs-core:javadoc FAILED
/Users/clyde/dev/opensourceprojects/spring-restdocs/spring-restdocs-core/src/main/java/org/springframework/restdocs/payload/JsonContentHandler.java:35: error: unmappable character for encoding ASCII
 * @author Mathias D??sterh??ft

The fix is to add options.encoding = 'UTF-8' to the javadoc closure in build.gradle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: taskNon user-facing work

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions