diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-09-06 11:43:41 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-09-06 11:43:41 -0700 |
commit | ac1abc2b5b6f629726fad04045acda8ee33e047f (patch) | |
tree | f05c2ffe4956efa28744e35842d0fe26008005b5 /version-manifest/pom.xml | |
parent | 3fdf98d67f6c8a24c535635599d380a104bd93f2 (diff) |
Add git commit info in version-check output
Change-Id: I82973ea3239cf21b0aa6a3a0b172667edd253b43
Issue-ID: INT-124
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'version-manifest/pom.xml')
-rw-r--r-- | version-manifest/pom.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/version-manifest/pom.xml b/version-manifest/pom.xml index 884199e6f..331f357ad 100644 --- a/version-manifest/pom.xml +++ b/version-manifest/pom.xml @@ -68,6 +68,23 @@ </execution> </executions> </plugin> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <version>2.2.3</version> + <executions> + <execution> + <phase>validate</phase> + <goals> + <goal>revision</goal> + </goals> + </execution> + </executions> + <configuration> + <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> + <generateGitPropertiesFile>true</generateGitPropertiesFile> + </configuration> + </plugin> </plugins> </build> </project> |