Skip to content

Commit

Permalink
introduce spotless formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 15, 2024
1 parent a4119b9 commit ca27335
Show file tree
Hide file tree
Showing 3 changed files with 404 additions and 16 deletions.
28 changes: 18 additions & 10 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,24 +231,32 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.2</version>
</plugin>

<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.24.1</version>
<configuration>
<compilerSource>${maven.compiler.source}</compilerSource>
<compilerCompliance>${maven.compiler.source}</compilerCompliance>
<compilerTargetPlatform>${maven.compiler.source}</compilerTargetPlatform>
</configuration>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.43.0</version>
<executions>
<execution>
<id>code-format</id>
<goals>
<goal>format</goal>
<goal>apply</goal>
</goals>
</execution>
</executions>
<configuration>
<java>
<eclipse>
<version>4.26</version>
<file>${project.basedir}/src/main/resources/formatting.xml</file>
</eclipse>
<removeUnusedImports />
<importOrder>
<order>java|javax,ch.puzzle,org,com,com.diffplug,,\#com.diffplug,\#</order>
<semanticSort>true</semanticSort>
</importOrder>
<formatAnnotations />
</java>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Loading

0 comments on commit ca27335

Please sign in to comment.