Resolves #1995, flag to format JavaDoc for Palantir formatter by blutorange · Pull Request #2009 · diffplug/spotless (original) (raw)
Adds a formatJavadoc flag to the Palantir formatter (Maven + Gradle) to enable Java Doc to be formatted, resolves #1995
This requires at least Palantir version 2.36.0, although there seem to be some issues with dependency resolution (see palantir/palantir-java-format#976), which seem to be fixed in Palantir version 2.39.0, so I used that version in the README.
To support older versions, the builder.formatJavadoc(true) method is called via reflection only if required.
After creating the PR, please add a commit that adds a bullet-point under the [Unreleased] section of CHANGES.md, plugin-gradle/CHANGES.md, and plugin-maven/CHANGES.md which includes:
- a summary of the change
- either
- a link to the issue you are resolving (for small changes)