From 104b4d275762a0aa9551a5949b3594406877b8ee Mon Sep 17 00:00:00 2001 From: Antoine Rey <antoine.rey@gmail.com> Date: Mon, 17 Oct 2016 08:23:28 +0200 Subject: [PATCH] Add Git commit information to the /manage/info endpoint --- pom.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pom.xml b/pom.xml index f33fdba7..0ed58594 100644 --- a/pom.xml +++ b/pom.xml @@ -117,6 +117,26 @@ </execution> </executions> </plugin> + + <!-- Spring Boot Actuator displays build-related information if a META-INF/build-info.properties file is present --> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>revision</goal> + </goals> + </execution> + </executions> + <configuration> + <verbose>true</verbose> + <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat> + <generateGitPropertiesFile>true</generateGitPropertiesFile> + <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties + </generateGitPropertiesFilename> + </configuration> + </plugin> </plugins> </build> </project> -- GitLab