BuildInfoContributor is a built-in Spring Boot Actuator contributor that reads build-info.properties and adds project build details to the /info endpoint. section 15.3.1
Enable the generated metadata through the build system:
- Configure the Spring Boot Maven Plugin with its build-info goal. section 15.3.1
- Configure Gradle with springBoot { buildInfo() }. section 15.3.1
- Package the resulting build-info.properties file in the distributable JAR or WAR. section 15.3.1
Build details returned by /info
A GET request can expose an object such as build.artifact, build.name, build.time, build.version, and build.group, making the running application version and build time visible. section 15.3.1
