From 0fd720a87fe2c8779a1cf8ee9fa95f09844e72fb Mon Sep 17 00:00:00 2001 From: TheSnoozer <6849390+TheSnoozer@users.noreply.github.com> Date: Fri, 16 Feb 2024 18:21:14 +0100 Subject: [PATCH] Change dateformat for git-commit-id-maven-plugin Old formmat: yyyy-MM-dd'T'HH:mm:ssZ, RFC 822 New format: yyyy-MM-dd'T'HH:mm:ssXXX ISO 8601 Related to https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/674. This change is required to make the times produced by the git-commit-id-maven-plugin usable for Maven's reproducible builds, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html. Timestamp for reproducible output archive entries must either formatted as ISO 8601 or as an int representing seconds since the epoch. Example usage might be ${git.commit.time} See gh-39606 --- .../spring-boot-starter-parent/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle b/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle index 14974ef32076..f62ccccb24dd 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle @@ -148,7 +148,7 @@ publishing.publications.withType(MavenPublication) { } configuration { delegate.verbose('true') - delegate.dateFormat("yyyy-MM-dd'T'HH:mm:ssZ") + delegate.dateFormat("yyyy-MM-dd'T'HH:mm:ssXXX") delegate.generateGitPropertiesFile('true') delegate.generateGitPropertiesFilename('${project.build.outputDirectory}/git.properties') }