diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -321,6 +321,11 @@ Modifications copyright (c) 2018 Nokia <artifactId>yaml-json-validator-maven-plugin</artifactId> <version>1.0.1</version> </plugin> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <version>2.2.6</version> + </plugin> </plugins> </pluginManagement> @@ -426,6 +431,37 @@ Modifications copyright (c) 2018 Nokia <printSummary>false</printSummary> </configuration> </plugin> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>revision</goal> + </goals> + </execution> + </executions> + <configuration> + <generateGitPropertiesFile>true</generateGitPropertiesFile> + <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename> + <failOnNoGitDirectory>true</failOnNoGitDirectory> + <verbose>false</verbose> + <includeOnlyProperties> + <includeOnlyProperty>git.build.version</includeOnlyProperty> + <includeOnlyProperty>git.build.time</includeOnlyProperty> + <includeOnlyProperty>git.commit.id</includeOnlyProperty> + <includeOnlyProperty>git.commit.time</includeOnlyProperty> + <includeOnlyProperty>git.commit.user.name</includeOnlyProperty> + <includeOnlyProperty>git.commit.user.email</includeOnlyProperty> + <includeOnlyProperty>git.commit.message.short</includeOnlyProperty> + <includeOnlyProperty>git.commit.message.full</includeOnlyProperty> + </includeOnlyProperties> + <gitDescribe> + <skip>true</skip> + </gitDescribe> + <useNativeGit>false</useNativeGit> + </configuration> + </plugin> </plugins> </build> |