Merge "Add new endpoint with commit info"
[vid.git] / vid-app-common / pom.xml
index f97a8a2..5082129 100755 (executable)
                                        </dependency>\r
                                </dependencies>\r
                        </plugin>\r
+                       <plugin>\r
+                               <groupId>pl.project13.maven</groupId>\r
+                               <artifactId>git-commit-id-plugin</artifactId>\r
+                               <version>2.2.4</version>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <id>get-the-git-infos</id>\r
+                                               <goals>\r
+                                                       <goal>revision</goal>\r
+                                               </goals>\r
+                                       </execution>\r
+                               </executions>\r
+                               <configuration>\r
+                                       <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>\r
+                                       <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>\r
+                                       <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>\r
+                                       <generateGitPropertiesFile>true</generateGitPropertiesFile>\r
+                                       <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>\r
+                                       <includeOnlyProperties>\r
+                                                <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>\r
+                                                <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>\r
+                                                <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>\r
+                                       </includeOnlyProperties>\r
+                               </configuration>\r
+                       </plugin>\r
                </plugins>\r
        </build>\r
 \r