Skip to content

Commit

Permalink
Automatic-Module Jar patching is reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Dec 8, 2023
1 parent 10e46a4 commit 08c9df6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private void addAutomaticModuleName(File originalJar, File moduleJar, AutomaticM
manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
}
manifest.getMainAttributes().putValue("Automatic-Module-Name", automaticModule.getModuleName());
try (JarOutputStream outputStream = new JarOutputStream(Files.newOutputStream(moduleJar.toPath()), manifest)) {
try (JarOutputStream outputStream = newJarOutputStream(Files.newOutputStream(moduleJar.toPath()), manifest)) {
Map<String, List<String>> providers = new LinkedHashMap<>();
Set<String> packages = new TreeSet<>();
copyAndExtractProviders(inputStream, outputStream, !automaticModule.getMergedJars().isEmpty(), providers, packages);
Expand Down

0 comments on commit 08c9df6

Please sign in to comment.