Skip to content

Commit e9cbaba

Browse files
committed
Add build step to check formatting
1 parent 913cc47 commit e9cbaba

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
distribution: 'temurin'
1919
cache: maven
2020
- name: Build with Maven
21-
run: mvn -B package --file pom.xml
21+
run: mvn clean verify package

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,32 @@
5454
<artifactId>maven-install-plugin</artifactId>
5555
<version>3.1.4</version>
5656
</plugin>
57+
<plugin>
58+
<groupId>com.spotify.fmt</groupId>
59+
<artifactId>fmt-maven-plugin</artifactId>
60+
<version>2.27</version>
61+
<executions>
62+
<execution>
63+
<goals>
64+
<goal>check</goal>
65+
</goals>
66+
</execution>
67+
</executions>
68+
<dependencies>
69+
<dependency>
70+
<groupId>com.google.googlejavaformat</groupId>
71+
<artifactId>google-java-format</artifactId>
72+
<version>1.27.0</version>
73+
</dependency>
74+
</dependencies>
75+
</plugin>
5776
</plugins>
5877
</pluginManagement>
78+
<plugins>
79+
<plugin>
80+
<groupId>com.spotify.fmt</groupId>
81+
<artifactId>fmt-maven-plugin</artifactId>
82+
</plugin>
83+
</plugins>
5984
</build>
6085
</project>

0 commit comments

Comments
 (0)