Merge pull request #12283 from smatvienko-tb/feature/git-actuator-info
added git-commit-id-maven-plugin for the application to expose the git information under actuator/info
This commit is contained in:
		
						commit
						6627084cdf
					
				@ -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
									
									
									
									
									
								
							
							
						
						
									
										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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user