diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2021-05-03 19:16:48 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2021-05-11 21:49:24 +0200 |
commit | 4bae5f13fb592f78d5ce714641120a1473700f9a (patch) | |
tree | e4649978d6a31e1dbeaecf73a98dd2409932c104 /pom.xml | |
parent | c8144a9c60279f8dc81b2506794acd24df31b9a3 (diff) |
Add Spotless.
Change-Id: I041c85d67e9eab6711510aae2df35b09e88707e8
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -25,6 +25,7 @@ <compiler-plugin.version>3.8.1</compiler-plugin.version> <failsafe-plugin.version>${surefire-plugin.version}</failsafe-plugin.version> <quarkus.version>1.13.3.Final</quarkus.version> + <spotless-plugin.version>2.10.3</spotless-plugin.version> <surefire-plugin.version>3.0.0-M5</surefire-plugin.version> </properties> @@ -76,6 +77,26 @@ </plugin> </plugins> </pluginManagement> + + <plugins> + <plugin> + <groupId>com.diffplug.spotless</groupId> + <artifactId>spotless-maven-plugin</artifactId> + <version>${spotless-plugin.version}</version> + <configuration> + <java> + <removeUnusedImports/> + <importOrder> + <order>java,javax,org,com,de,io,dagger,eu.mulk,</order> + </importOrder> + <googleJavaFormat> + <version>${google.java.format.version}</version> + <style>GOOGLE</style> + </googleJavaFormat> + </java> + </configuration> + </plugin> + </plugins> </build> </project> |