Git commit metadata records which Git revision produced a build. Spring Boot can package it as a build-time git.properties file and expose it through the /info endpoint, making the deployed code state traceable. section 15.3.1
The integration works in a few practical steps:
- Add the Git-properties plugin to Maven or Gradle; the project must be a Git clone or contain at least one commit. section 15.3.1
