In order to make maven build will be reproducible we use property project.build.outputTimestamp in maven project.
So spring-boot-maven-plugin:build-info should take this value as default to not break reproducible build.
Most of maven plugins takes into account this property.
https://maven.apache.org/guides/mini/guide-reproducible-builds.html
Comment From: wilkinsona
Both build info's time and project.build.outputTimestamp support ISO-8601 formatted input so this is already supported by setting time using the value of project.build.outputTimestamp:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>build-info</goal>
</goals>
<configuration>
<time>${project.build.outputTimestamp}</time>
</configuration>
</execution>
</executions>
</plugin>
The risk of changing the default behaviour is pretty small, but, given that it's already possible with minimal additional configuration, I do wonder if we should consider this to be an enhancement and implement it in 2.6.
Comment From: slawekjaranowski
It is ok for me, that you scheduled change for 2.6 version. Can I do something before merge?
Comment From: wilkinsona
@slawekjaranowski No, nothing for you to do, thank you. We'll aim to merge this for inclusion in 2.6.0-M1 once we've released 2.5.0 and created the 2.5.x maintenance branch.
Comment From: Arianepd
testando