Speed up git commit extraction
Fixes #3039 Limits only asking Git for 2 properties, branch and commit id abbrev Also add warning about version of git-commit-id-plug
This commit is contained in:
parent
e38d586a0e
commit
f220d6b989
@ -135,7 +135,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>pl.project13.maven</groupId>
|
<groupId>pl.project13.maven</groupId>
|
||||||
<artifactId>git-commit-id-plugin</artifactId>
|
<artifactId>git-commit-id-plugin</artifactId>
|
||||||
<version>4.0.0</version>
|
<version>4.0.0</version> <!-- WARNING: 4.0.1 and higher don't work for JSON output -->
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>get-the-git-infos</id>
|
<id>get-the-git-infos</id>
|
||||||
@ -146,7 +146,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
|
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
|
||||||
<prefix>git</prefix>
|
|
||||||
<verbose>false</verbose>
|
<verbose>false</verbose>
|
||||||
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
||||||
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
|
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
|
||||||
@ -158,6 +157,11 @@
|
|||||||
<always>false</always>
|
<always>false</always>
|
||||||
<dirty>-dirty</dirty>
|
<dirty>-dirty</dirty>
|
||||||
</gitDescribe>
|
</gitDescribe>
|
||||||
|
<includeOnlyProperties>
|
||||||
|
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
|
||||||
|
<includeOnlyProperty>^git.branch</includeOnlyProperty>
|
||||||
|
<includeOnlyProperty>^git.commit.id.(abbrev|full|describe)$</includeOnlyProperty>
|
||||||
|
</includeOnlyProperties>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
Loading…
Reference in New Issue
Block a user