prettier-java
prettier-java copied to clipboard
Documentation for usage with spotless gradle/maven plugin
Spotless does support prettier and mentions prettier for java. Maybe we should provide examples how to configure spotless with prettier for java.
- https://github.com/diffplug/spotless/tree/main/plugin-gradle#prettier-plugins
It has been discussed here https://github.com/jhipster/prettier-java/issues/469#issuecomment-845740492 by @jqno
I adapted my configuration from the documentation over at the Spotless GitHub page
In my comment I refer to these lines in the EqualsVerifier pom. Note that only the first <include> will be necessary for most people: <include>src/*/java/**/*.java</include>. I have an uncommon setup for some unit tests that are specific for certain Java versions (e.g. tests for Java 16's record feature).