Skip to content

Commit 08c9df6

Browse files
committed
Automatic-Module Jar patching is reproducible
#89
1 parent 10e46a4 commit 08c9df6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/gradlex/javamodule/moduleinfo/ExtraJavaModuleInfoTransform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private void addAutomaticModuleName(File originalJar, File moduleJar, AutomaticM
249249
manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
250250
}
251251
manifest.getMainAttributes().putValue("Automatic-Module-Name", automaticModule.getModuleName());
252-
try (JarOutputStream outputStream = new JarOutputStream(Files.newOutputStream(moduleJar.toPath()), manifest)) {
252+
try (JarOutputStream outputStream = newJarOutputStream(Files.newOutputStream(moduleJar.toPath()), manifest)) {
253253
Map<String, List<String>> providers = new LinkedHashMap<>();
254254
Set<String> packages = new TreeSet<>();
255255
copyAndExtractProviders(inputStream, outputStream, !automaticModule.getMergedJars().isEmpty(), providers, packages);

0 commit comments

Comments
 (0)