<plugin> <groupId>com.diffplug.spotless</groupId> <artifactId>spotless-maven-plugin</artifactId> <version>1.20.0</version> <configuration> <java> <!-- include all java files in "java" folders under "src" --> <includes> <include>src/**/java/**/*.java</include> </includes> <googleJavaFormat> <!-- Optional, available versions: https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.googlejavaformat%22%20AND%20a%3A%22google-java-format%22 --> <version>1.7</version> <!-- Optional, available versions: GOOGLE, AOSP https://github.com/google/google-java-format/blob/master/core/src/main/java/com/google/googlejavaformat/java/JavaFormatterOptions.java --> <style>GOOGLE</style> </googleJavaFormat> </java> </configuration> </plugin>