Skip to content

Commit

Permalink
Update Maven formatting plugin (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jan 3, 2025
1 parent 3c443ed commit fbd634f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
<plugin>
<groupId>com.cosium.code</groupId>
<artifactId>git-code-format-maven-plugin</artifactId>
<version>4.2</version>
<version>5.3</version>
<executions>
<!-- On commit, format the modified java files -->
<execution>
Expand All @@ -264,7 +264,23 @@
<goal>install-hooks</goal>
</goals>
</execution>
<!-- On Maven verify phase, fail if any file
(including unmodified) is badly formatted -->
<execution>
<id>validate-code-format</id>
<goals>
<goal>validate-code-format</goal>
</goals>
</execution>
</executions>
<dependencies>
<!-- Enable https://github.com/google/google-java-format -->
<dependency>
<groupId>com.cosium.code</groupId>
<artifactId>google-java-format</artifactId>
<version>5.3</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit fbd634f

Please sign in to comment.