Skip to content

Commit 4d688f9

Browse files
author
Alec Zoeller
committed
Added mvn spotless:apply step
1 parent ff4ce90 commit 4d688f9

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

examples/java-spark-sql/pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<geotools.version>1.8.0-33.1</geotools.version>
3737
<spark.version>3.5.7</spark.version>
3838
<javax.servlet.version>4.0.1</javax.servlet.version>
39+
<spotless.version>3.0.0</spotless.version>
3940
</properties>
4041

4142
<dependencies>
@@ -144,6 +145,39 @@
144145
</execution>
145146
</executions>
146147
</plugin>
148+
<plugin>
149+
<groupId>com.diffplug.spotless</groupId>
150+
<artifactId>spotless-maven-plugin</artifactId>
151+
<version>${spotless.version}</version>
152+
<configuration>
153+
<formats>
154+
<!-- you can define as many formats as you want, each is independent -->
155+
<format>
156+
<!-- define the files to apply to -->
157+
<includes>
158+
<include>.gitattributes</include>
159+
<include>.gitignore</include>
160+
</includes>
161+
<!-- define the steps to apply to those files -->
162+
<trimTrailingWhitespace/>
163+
<endWithNewline/>
164+
<indent>
165+
<tabs>true</tabs>
166+
<spacesPerTab>4</spacesPerTab>
167+
</indent>
168+
</format>
169+
</formats>
170+
<!-- define a language-specific format -->
171+
<java>
172+
<googleJavaFormat>
173+
<version>1.10</version>
174+
<style>AOSP</style>
175+
<reflowLongStrings>true</reflowLongStrings>
176+
<formatJavadoc>false</formatJavadoc>
177+
</googleJavaFormat>
178+
</java>
179+
</configuration>
180+
</plugin>
147181
</plugins>
148182
</build>
149183
</project>

0 commit comments

Comments
 (0)