Skip to content

Commit

Permalink
Add spotless-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bencomp committed Oct 18, 2023
1 parent 64808ce commit 92560f2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,45 @@
<consoleOutput>true</consoleOutput>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.40.0</version>
<configuration>
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
<ratchetFrom>develop</ratchetFrom>
<formats>
<!-- you can define as many formats as you want, each is independent -->
<!-- <format> -->
<!-- define the files to apply to -->
<!-- <includes>
<include>*.md</include>
<include>.gitignore</include>
</includes> -->
<!-- define the steps to apply to those files -->
<!-- <trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent> -->
<!-- </format> -->
</formats>
<!-- define a language-specific format -->
<java>
<!-- no need to specify files, inferred automatically, but you can if you want -->

<!-- apply a specific flavor of google-java-format and reflow long strings -->
<googleJavaFormat>
<version>1.18.1</version>
<style>AOSP</style>
<reflowLongStrings>true</reflowLongStrings>
<formatJavadoc>false</formatJavadoc>
</googleJavaFormat>

</java>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
Expand Down

0 comments on commit 92560f2

Please sign in to comment.