Skip to content

Commit

Permalink
To get git commit id (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Nagarjuna
  • Loading branch information
NagarjunaKuchi authored Jun 16, 2020
1 parent db247ef commit ce3a3f2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions partner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,31 @@
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<!-- <format>json</format> -->
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit ce3a3f2

Please sign in to comment.