add spotless
This commit is contained in:
parent
c5e4fa2de0
commit
409a8f13cd
3 changed files with 64 additions and 0 deletions
|
|
@ -166,7 +166,29 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>2.30.0</version> <!--last version to support java 8-->
|
||||||
|
<configuration>
|
||||||
|
<java>
|
||||||
|
<palantirJavaFormat />
|
||||||
|
<importOrder>
|
||||||
|
<order>java,,\#</order>
|
||||||
|
</importOrder>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|
|
||||||
|
|
@ -373,6 +373,27 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>2.30.0</version> <!--last version to support java 8-->
|
||||||
|
<configuration>
|
||||||
|
<java>
|
||||||
|
<palantirJavaFormat />
|
||||||
|
<importOrder>
|
||||||
|
<order>java,,\#</order>
|
||||||
|
</importOrder>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
|
||||||
21
pom.xml
21
pom.xml
|
|
@ -106,6 +106,27 @@
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>2.30.0</version> <!--last version to support java 8-->
|
||||||
|
<configuration>
|
||||||
|
<java>
|
||||||
|
<palantirJavaFormat />
|
||||||
|
<importOrder>
|
||||||
|
<order>java,,\#</order>
|
||||||
|
</importOrder>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue