Skip to content

Commit 0fd720a

Browse files
TheSnoozermhalbritter
authored andcommitted
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 git-commit-id/git-commit-id-maven-plugin#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 <properties> <project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp> </properties> See gh-39606
1 parent 7799d90 commit 0fd720a

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-starters/spring-boot-starter-parent

1 file changed

+1
-1
lines changed

Diff for: spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ publishing.publications.withType(MavenPublication) {
148148
}
149149
configuration {
150150
delegate.verbose('true')
151-
delegate.dateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
151+
delegate.dateFormat("yyyy-MM-dd'T'HH:mm:ssXXX")
152152
delegate.generateGitPropertiesFile('true')
153153
delegate.generateGitPropertiesFilename('${project.build.outputDirectory}/git.properties')
154154
}

0 commit comments

Comments
 (0)