Skip to content

Commit

Permalink
chore: Use Spotless for consistent source code formatting
Browse files Browse the repository at this point in the history
Closes #323.
  • Loading branch information
mthmulders committed May 10, 2024
1 parent 0f708ab commit 8dec243
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.12.0</version>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.43.0</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -244,6 +256,36 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<palantirJavaFormat>
<version>2.44.0</version>
</palantirJavaFormat>
<toggleOffOn></toggleOffOn>
</java>
<markdown>
<includes>
<include>**/*.md</include>
</includes>
<flexmark></flexmark>
<toggleOffOn></toggleOffOn>
</markdown>
<pom>
<sortPom>
<expandEmptyElements>true</expandEmptyElements>
<indentSchemaLocation>true</indentSchemaLocation>
<keepBlankLines>true</keepBlankLines>
<nrOfIndentSpace>4</nrOfIndentSpace>
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
</sortPom>
<toggleOffOn></toggleOffOn>
</pom>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 8dec243

Please sign in to comment.