james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [5/5] james-project git commit: Generate git.properties file at each build
Date Tue, 04 Sep 2018 10:11:38 GMT
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.ouazana@linagora.com>
Authored: Mon Sep 3 15:09:29 2018 +0200
Committer: Benoit Tellier <btellier@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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message