Skip to content

Commit

Permalink
build(git-hooks): Add git-build-hook-maven-plugin + pre-push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
f-lopes committed Jun 23, 2023
1 parent abebac7 commit 687a5a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .git-hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

mvn clean package
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,25 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
</plugin>

<plugin>
<groupId>com.rudikershaw.gitbuildhook</groupId>
<artifactId>git-build-hook-maven-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<installHooks>
<pre-push>.git-hooks/pre-push</pre-push>
</installHooks>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 687a5a6

Please sign in to comment.