all java code to be formatted automatically with google-java-format. Eg.
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<java>
<!-- no need to specify files, inferred automatically, but you can if you want -->
<!-- apply a specific flavor of google-java-format -->
<googleJavaFormat>
<version>1.8</version>
<style>AOSP</style>
</googleJavaFormat>
</java>
</configuration>
</plugin>
I expect
all java code to be formatted automatically with google-java-format. Eg.