Change format of git.commit.time used by git-commit-id-maven-plugin from RFC 822 to ISO 8601#39606
Change format of git.commit.time used by git-commit-id-maven-plugin from RFC 822 to ISO 8601#39606TheSnoozer wants to merge 1 commit intospring-projects:mainfrom TheSnoozer:patch-1
Conversation
…H:mm:ssZ` RFC 822 to `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]( https://maven.apache.org/guides/mini/guide-reproducible-builds.html). Timestamp for reproducible output archive entries must either formatted as ISO 8601 `yyyy-MM-dd'T'HH:mm:ssXXX` or as an int representing seconds since the [epoch](https://reproducible-builds.org/docs/source-date-epoch/">SOURCE_DATE_EPOCH) Example usage might be E.g. ``` <properties> <project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp> </properties> ```
|
Isn't
That's what the Maven docs are using too on the page you linked above: <project.build.outputTimestamp>2023-01-01T00:00:00Z</project.build.outputTimestamp> |
No, you are confusing to |
|
Oops, indeed, I meant |
|
So, |
Correct. |
yyyy-MM-dd'T'HHH:mm:ssZ RFC 822 to yyyy-MM-dd'T'HH:mm:ssXXX ISO 8601|
Note to myself: Check what the Gradle plugin does. |
|
@TheSnoozer @mhalbritter Please change the title because ISO 8601 is not aware of any timezones, but offsets only. |
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
|
Thank you very much and congratulations on your first contribution 🎉! |
|
Great, thanks for getting this integrated :-) |
|
This has been superseded by #40015 as we can now use the plugin's default. |
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.
Timestamp for reproducible output archive entries must either formatted as ISO 8601
yyyy-MM-dd'T'HH:mm:ssXXXor as an int representing seconds since the epochExample usage might be
E.g.