Skip to content

Commit

Permalink
Add running scalafmt to compile stage in pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Nov 30, 2023
1 parent 757d92d commit ed8fe18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version = 3.7.14

version = 3.7.17
runner.dialect = scala213
rewrite.trailingCommas.style = keep

docstrings.style = Asterisk
maxColumn = 120

14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,20 @@
</archive>
</configuration>
</plugin>
<!-- scalafmt -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.41.0</version>
<configuration>
<scala>
<scalafmt>
<version>3.7.17</version>
<file>${project.basedir}/.scalafmt.conf</file>
</scalafmt>
</scala>
</configuration>
</plugin>
<!-- run java tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit ed8fe18

Please sign in to comment.