prettier-java icon indicating copy to clipboard operation
prettier-java copied to clipboard

Documentation for usage with spotless gradle/maven plugin

Open atomfrede opened this issue 5 years ago • 2 comments
trafficstars

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

atomfrede avatar Aug 13 '20 13:08 atomfrede

It has been discussed here https://github.com/jhipster/prettier-java/issues/469#issuecomment-845740492 by @jqno

pascalgrimaud avatar Jun 16 '21 07:06 pascalgrimaud

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).

jqno avatar Jun 16 '21 07:06 jqno