As stated in the documentation at https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info.retrieving.response-structure.git, the info Actuator endpoint doesn't include a build.time in the response.
Yet, in GitInfoContributor::postProcessContent(), the method looks for a build.time property that thus never exists, because it's not retained in the toSimplePropertySource() method above.
The line of code in question doesn't break anything but it has no effect either.
That's why I suggest removing it altogether for clarity.
Comment From: snicoll
@dalbani that's the output for the simple mode. When it outputs the full data, there is a build.time property exposed. The mode is documented here. I can see that this section could use a second look so I've created an issue for that.
Comment From: dalbani
Thanks a lot @snicoll for this super fast and helpful feedback 👍