Browse Source

added git-commit-id-maven-plugin for the application to expose the git information under actuator/info

pull/12283/head
Sergey Matvienko 1 year ago
parent
commit
e6ee4c7679
  1. 4
      application/pom.xml
  2. 23
      pom.xml

4
application/pom.xml

@ -390,6 +390,10 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>

23
pom.xml

@ -869,6 +869,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<!-- <includeOnlyProperties>-->
<!-- <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>-->
<!-- <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>-->
<!-- </includeOnlyProperties>-->
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>

Loading…
Cancel
Save