Skip to content
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

Reproducible timestamps #279

Open
ebourg opened this issue Jun 7, 2023 · 2 comments
Open

Reproducible timestamps #279

ebourg opened this issue Jun 7, 2023 · 2 comments

Comments

@ebourg
Copy link

ebourg commented Jun 7, 2023

The entries in the jar file generated have the date set to the build date. It should be set to the timestamp specified by the project.build.outputTimestamp property in the POM to make the build reproducible.

https://maven.apache.org/guides/mini/guide-reproducible-builds.html

@lasselindqvist
Copy link
Collaborator

As long as Proguard itself does not support such an option (https://www.guardsquare.com/manual/configuration/usage), the Maven plugin cannot tell it to use a constant timestamp

Maybe there is another plugin that would "rewrite" the obfuscated jar and produce the result you need.

@ebourg
Copy link
Author

ebourg commented Jun 14, 2023

Maybe there is another plugin that would "rewrite" the obfuscated jar and produce the result you need.

Indeed, reproducible-build-maven-plugin can do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants