Speed up git commit extraction
Fixes
Limits only asking Git for 2 properties, branch and commit id abbrev
Also add warning about version of git-commit-id-plug
<plugin>
<groupId>pl.project13.maven</groupId>
<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>
<execution>
<id>get-the-git-infos</id>
</executions>
<configuration>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
- <prefix>git</prefix>
<verbose>false</verbose>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<always>false</always>
<dirty>-dirty</dirty>
</gitDescribe>
+ <includeOnlyProperties>
+ <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
+ <includeOnlyProperty>^git.branch</includeOnlyProperty>
+ <includeOnlyProperty>^git.commit.id.(abbrev|full|describe)$</includeOnlyProperty>
+ </includeOnlyProperties>
</configuration>
</plugin>
</plugins>
