Skip to content

Commit cca7fc8

Browse files
committed
build: add google java format plugin
1 parent a990aba commit cca7fc8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,37 @@
221221
</execution>
222222
</executions>
223223
</plugin>
224+
<plugin>
225+
<groupId>com.coveo</groupId>
226+
<artifactId>fmt-maven-plugin</artifactId>
227+
<version>2.6.0</version>
228+
<executions>
229+
<execution>
230+
<goals>
231+
<goal>format</goal>
232+
</goals>
233+
</execution>
234+
</executions>
235+
</plugin>
236+
<plugin>
237+
<groupId>io.github.phillipuniverse</groupId>
238+
<artifactId>githook-maven-plugin</artifactId>
239+
<version>1.0.0</version>
240+
<executions>
241+
<execution>
242+
<goals>
243+
<goal>install</goal>
244+
</goals>
245+
<configuration>
246+
<hooks>
247+
<pre-commit>
248+
mvn com.coveo:fmt-maven-plugin:format
249+
</pre-commit>
250+
</hooks>
251+
</configuration>
252+
</execution>
253+
</executions>
254+
</plugin>
224255
</plugins>
225256
</build>
226257
</project>

0 commit comments

Comments
 (0)