Skip to content

Commit

Permalink
ci: Try to fix pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaax committed Feb 9, 2024
1 parent 8e761eb commit 2065a63
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,31 @@
</resource>
</resources>

<plugins>
<plugins>
<!-- Get the git commit hash -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>get-commit-hash</id>
<phase>initialize</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>git</executable>
<arguments>
<argument>rev-parse</argument>
<argument>--short</argument>
<argument>HEAD</argument>
</arguments>
<outputProperty>git.commit.hash</outputProperty>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down

0 comments on commit 2065a63

Please sign in to comment.