mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:25:50 +00:00
Add Git commit information to the /manage/info endpoint
This commit is contained in:
parent
d69b89691c
commit
3450c3d99e
1 changed files with 22 additions and 1 deletions
23
pom.xml
23
pom.xml
|
@ -207,6 +207,26 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Spring Boot Actuator displays build-related information if a git.properties file is present at the classpath -->
|
||||||
|
<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>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<!--
|
<!--
|
||||||
right now lesscss maven plugin does NOT support @Import from classpath
|
right now lesscss maven plugin does NOT support @Import from classpath
|
||||||
|
@ -232,7 +252,8 @@
|
||||||
<artifactId>bootstrap</artifactId>
|
<artifactId>bootstrap</artifactId>
|
||||||
<version>3.3.6</version>
|
<version>3.3.6</version>
|
||||||
<overWrite>false</overWrite>
|
<overWrite>false</overWrite>
|
||||||
<outputDirectory>${project.basedir}/src/main/webapp/resources/generated</outputDirectory>
|
<outputDirectory>${project.basedir}/src/main/webapp/resources/generated
|
||||||
|
</outputDirectory>
|
||||||
<includes>**/*.less</includes>
|
<includes>**/*.less</includes>
|
||||||
</artifactItem>
|
</artifactItem>
|
||||||
</artifactItems>
|
</artifactItems>
|
||||||
|
|
Loading…
Reference in a new issue