Skip to content

Commit 4f2f17f

Browse files
committed
style: changed code formatter to spotless
1 parent 163066f commit 4f2f17f

8 files changed

Lines changed: 701 additions & 709 deletions

File tree

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ compile() {
1818
}
1919

2020
format() {
21-
mvn formatter:format
21+
mvn spotless:apply
2222
errcheck $?
2323
}
2424

pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,14 @@
157157
</configuration>
158158
</plugin>
159159
<plugin>
160-
<groupId>net.revelc.code.formatter</groupId>
161-
<artifactId>formatter-maven-plugin</artifactId>
162-
<version>2.26.0</version>
160+
<groupId>com.diffplug.spotless</groupId>
161+
<artifactId>spotless-maven-plugin</artifactId>
162+
<version>2.44.5</version>
163+
<configuration>
164+
<java>
165+
<googleJavaFormat/>
166+
</java>
167+
</configuration>
163168
</plugin>
164169
</plugins>
165170
</build>

0 commit comments

Comments
 (0)