-
Notifications
You must be signed in to change notification settings - Fork 160
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
upgrade m-release-p: outputTimestamp auto-update #314
Conversation
@hboutemy Thanks for your contribution! Could you please elaborate what the change you're referring to is doing exactly? |
when you open a jar/zip file, you expect that the timestamp of the files in it represent the date at which the release was done, not an old date from the past when the project was created, isn't it? |
@hboutemy Thanks for the explanation. Seeing that you are a committer in the Maven Release plugin project, I want to thank you very much for your work! 👍 Is there any plan to release maven-release-plugin 3.0.0 anytime soon or is using the milestone version 3.0.0-M4 or 3.0.0-M5 recommended? |
I must admit that we use the milestone numbering for a long time now, it's very stable, we should probably do a 3.0.0 but it's not planned yet... |
@hboutemy Thanks for your feedback! This would break reproducible builds, wouldn't it? If I built the artifacts of the https://github.com/OpenAPITools/openapi-diff/tree/2.0.1 tag twice on a different time, it would result in different artifacts because the output timestamp of the files in the JARs are different, wouldn't it? See #299 for a related discussion. |
Reproducible Builds is about being reproducible: having a fixed value is reproducible. the best proof I can show you that reproducibility works is https://github.com/jvm-repo-rebuild/reproducible-central#org.openapitools.openapidiff:openapi-diff-parent : I rebuilt your release and I got the same binaries than you this is the result of you configuring outputTimestamp and using recent versions of plugins that I updated to support reproducible output when timestamp is defined: see all in https://maven.apache.org/guides/mini/guide-reproducible-builds.html The guy from Arch Linux does not realize how things changed with the work I did in past 3 years :) |
@hboutemy I'm not sure I understand the purpose of this pull request then. When building OpenAPI Diff from this PR, the timestamps in the resulting artifacts (JAR files) is still the one we set to a fixed timestamp in the Maven POM via
|
the new plugin version will only update the outputTimestamp when you'll do |
Got it, that was the missing part. 😅 Thanks for your contribution! |
No description provided.