jflex icon indicating copy to clipboard operation
jflex copied to clipboard

Make maven build reproducible

Open hboutemy opened this issue 5 years ago • 6 comments

  • Hardcode an initial value for <project.build.outputTimestamp>
  • Update maven plugins to version 3.2+

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

hboutemy avatar May 16 '20 11:05 hboutemy

Sorry for the delay, I need to read up a bit on what exactly maven is doing there to understand what we're doing. Reproducible build as such is a good idea, I'm all for it.

lsf37 avatar May 28 '20 01:05 lsf37

@lsf37 don't hesitate to ping me if you need any explanation

notice that Reproducible Central is now live and with many releases: https://github.com/jvm-repo-rebuild/reproducible-central it would be nice to add next release of jflex to the list of independently verified reproducible builds

hboutemy avatar Dec 19 '20 12:12 hboutemy

I think using a timestamp is a bad practice, but it seems Maven can't do better. LGTM.

regisd avatar Dec 19 '20 17:12 regisd

As far as I understand, this will fix #720. I've updated the change description.

regisd avatar Dec 19 '20 17:12 regisd

I think using a timestamp is a bad practice, but it seems Maven can't do better. LGTM.

you need something reproducible for files timestamp in zip archives: any better idea welcome :)

hboutemy avatar Dec 19 '20 17:12 hboutemy

As far as I understand, this will fix #720. I've updated the change description.

no, i don't think so

this PR is about getting the same binary JFlex .jar output when rebuilding: it does not change anything to how JFlex works

hboutemy avatar Dec 19 '20 17:12 hboutemy

(rebased and resolved conflicts)

lsf37 avatar Jan 07 '23 05:01 lsf37