Generate git.properties file at each build
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/3f2f8a70 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/3f2f8a70 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/3f2f8a70 Branch: refs/heads/master Commit: 3f2f8a709f39a5e9f5d093b6f3ddddcd4eb658d4 Parents: f65401b Author: Raphael Ouazana <raphael.ouaz...@linagora.com> Authored: Mon Sep 3 15:09:29 2018 +0200 Committer: Benoit Tellier <btell...@linagora.com> Committed: Tue Sep 4 17:10:41 2018 +0700 ---------------------------------------------------------------------- pom.xml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/3f2f8a70/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 9c9028a..508db16 100644 --- a/pom.xml +++ b/pom.xml @@ -3039,6 +3039,11 @@ <artifactId>animal-sniffer-maven-plugin</artifactId> <version>1.16</version> </plugin> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <version>2.2.5</version> + </plugin> </plugins> </pluginManagement> <plugins> @@ -3169,6 +3174,31 @@ </execution> </executions> </plugin> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <executions> + <execution> + <id>get-the-git-infos</id> + <goals> + <goal>revision</goal> + </goals> + </execution> + </executions> + <configuration> + <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> + <prefix>git</prefix> + <verbose>false</verbose> + <generateGitPropertiesFile>true</generateGitPropertiesFile> + <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> + <format>json</format> + <gitDescribe> + <skip>false</skip> + <always>false</always> + <dirty>-dirty</dirty> + </gitDescribe> + </configuration> + </plugin> </plugins> <extensions> <extension> --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org