Skip to content

Commit 22f45d2

Browse files
author
Saborowski, Kai
committed
Enhanced git commit plugin configuration.
1 parent cda8b77 commit 22f45d2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Changelog
12
## Release v1.1.1 - 2023-10-28
23

34
Release v1.1.1

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,25 @@
111111
<plugin>
112112
<groupId>io.github.git-commit-id</groupId>
113113
<artifactId>git-commit-id-maven-plugin</artifactId>
114+
<executions>
115+
<execution>
116+
<id>get-the-git-infos</id>
117+
<goals>
118+
<goal>revision</goal>
119+
</goals>
120+
<phase>initialize</phase>
121+
</execution>
122+
</executions>
114123
<configuration>
115124
<offline>true</offline>
116125
<skipPoms>false</skipPoms>
126+
<generateGitPropertiesFile>true</generateGitPropertiesFile>
127+
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
128+
<includeOnlyProperties>
129+
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
130+
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
131+
</includeOnlyProperties>
132+
<commitIdGenerationMode>full</commitIdGenerationMode>
117133
</configuration>
118134
</plugin>
119135
<plugin>

0 commit comments

Comments
 (0)