Skip to content

Commit

Permalink
Add spotless plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabua committed Oct 22, 2024
1 parent 0760a25 commit 59391d3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions maven-repository-provisioner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.takari.maven.plugins</groupId>
<artifactId>takari-lifecycle-plugin</artifactId>
Expand Down
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,30 @@
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.43.0</version>
<executions>
<execution>
<goals>
<goal>check</goal>
<goal>apply</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
<configuration>
<java>
<!-- same as in maven-parent:43 -->
<palantirJavaFormat />
<removeUnusedImports />
<importOrder>
<order>javax,java, ,\#</order>
</importOrder>
</java>
</configuration>
</plugin>
<plugin>
<groupId>io.takari.maven.plugins</groupId>
<artifactId>takari-lifecycle-plugin</artifactId>
Expand Down

0 comments on commit 59391d3

Please sign in to comment.