-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change format of git.commit.time used by git-commit-id-maven-plugin from RFC 822 to ISO 8601 #39606
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> ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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:ssXXX
or as an int representing seconds since the epochExample usage might be
E.g.