Skip to content

Commit a018a73

Browse files
author
Kyle Dong
committed
Add spotless check and reformat code
1 parent 2aba811 commit a018a73

File tree

13 files changed

+502
-452
lines changed

13 files changed

+502
-452
lines changed

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<slf4j.version>1.7.30</slf4j.version>
2626
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2727
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
28+
<spotless.version>2.4.2</spotless.version>
2829
</properties>
2930

3031
<dependencies>
@@ -68,6 +69,7 @@
6869
<artifactId>guava</artifactId>
6970
<version>31.1-jre</version>
7071
</dependency>
72+
7173
</dependencies>
7274

7375
<build>
@@ -123,6 +125,37 @@
123125
</execution>
124126
</executions>
125127
</plugin>
128+
129+
<plugin>
130+
<groupId>com.diffplug.spotless</groupId>
131+
<artifactId>spotless-maven-plugin</artifactId>
132+
<version>${spotless.version}</version>
133+
<configuration>
134+
<java>
135+
<googleJavaFormat>
136+
<version>1.7</version>
137+
<style>AOSP</style>
138+
</googleJavaFormat>
139+
140+
<!-- \# refers to the static imports -->
141+
<importOrder>
142+
<order>org.apache.flink,org.apache.flink.shaded,,javax,java,scala,\#</order>
143+
</importOrder>
144+
145+
<removeUnusedImports />
146+
</java>
147+
</configuration>
148+
<executions>
149+
<execution>
150+
<id>spotless-check</id>
151+
<phase>validate</phase>
152+
<goals>
153+
<goal>check</goal>
154+
</goals>
155+
</execution>
156+
</executions>
157+
</plugin>
158+
126159
</plugins>
127160

128161
<!-- If you want to use Java 8 Lambda Expressions uncomment the following

0 commit comments

Comments
 (0)