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>
|
||||
</executions>
|
||||
</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>
|
||||
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
|
|
|
|||
|
|
@ -373,6 +373,27 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</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>
|
||||
|
||||
</build>
|
||||
|
|
|
|||
21
pom.xml
21
pom.xml
|
|
@ -106,6 +106,27 @@
|
|||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</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>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
|
|
|||
Loading…
Reference in a new issue