Hi, I’m using distribution plugin.
distributions.main.contents {
into(‘lib’) {
from(jar)
from(project.configurations.runtime)
} } if I’m running distZip, renaming artifact and then running distZip once again, then 2 zips have different md5sum because they are different(i’ve tried to compare by binary content), however if I extract 2 zips into 2 diff directories the content of them is exactly the same.
Is there way to pass some arguments to the zip task to make it “stable”?(not sure how it’s implemented e.g. in gzip there is -n flag that might cause it, but I assume zipping is done with some java library…)
My intention is to check if something changed in artifact(lib/source whatever), between two builds(think about jenkins, fingerprinting etc)