<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.12.2</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<java>
<googleJavaFormat />
</java>
<groovy>
<importOrder />
<greclipse />
</groovy>
</configuration>
</plugin>
importOrderpreventsgreclipsefrom checking and applying