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

[MJLINK-75] create reproducible zip archive #190

Merged
merged 1 commit into from
Jan 24, 2024
Merged

[MJLINK-75] create reproducible zip archive #190

merged 1 commit into from
Jan 24, 2024

Conversation

hboutemy
Copy link
Member

Comment on lines +527 to +529
if (lastModified != null) {
zipArchiver.configureReproducible(lastModified);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@hboutemy hboutemy Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because here it's a method for Plexus Archiver, while in maven-rar-plugin it's Maven Archiver (that only works on jars)

@@ -510,6 +522,12 @@ private File createZipArchiveFromImage(File outputDirectory, File outputDirector
throws MojoExecutionException {
zipArchiver.addDirectory(outputDirectoryImage);

// configure for Reproducible Builds based on outputTimestamp value
Date lastModified = new MavenArchiver().parseOutputTimestamp(outputTimestamp);
if (lastModified != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in jlink, it's a zip, not a jar, then there are no MANIFEST.MF metadata

@hboutemy hboutemy requested a review from bmarwell January 23, 2024 10:14
@hboutemy hboutemy merged commit f7a9c03 into master Jan 24, 2024
60 checks passed
@hboutemy hboutemy deleted the MJLINK-75 branch January 24, 2024 08:20
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

Successfully merging this pull request may close these issues.

2 participants