Skip to content

Commit 687a5a6

Browse files
committed
build(git-hooks): Add git-build-hook-maven-plugin + pre-push hook
1 parent abebac7 commit 687a5a6

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.git-hooks/pre-push

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
mvn clean package

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,25 @@
230230
<artifactId>maven-surefire-plugin</artifactId>
231231
<version>${surefire.version}</version>
232232
</plugin>
233+
234+
<plugin>
235+
<groupId>com.rudikershaw.gitbuildhook</groupId>
236+
<artifactId>git-build-hook-maven-plugin</artifactId>
237+
<version>3.4.1</version>
238+
<configuration>
239+
<installHooks>
240+
<pre-push>.git-hooks/pre-push</pre-push>
241+
</installHooks>
242+
</configuration>
243+
<executions>
244+
<execution>
245+
<phase>package</phase>
246+
<goals>
247+
<goal>install</goal>
248+
</goals>
249+
</execution>
250+
</executions>
251+
</plugin>
233252
</plugins>
234253
</build>
235254

0 commit comments

Comments
 (0)