Fat jar zip64 format causes problems with Spring Boot framework
@@ -29,6 +29,7 @@ import org.jboss.jandex.Indexer;
import java.io.*;
import java.util.*;
+import java.util.jar.JarOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipInputStream;
@@ -71,8 +72,8 @@ public class FatJarBuilder {
try {
byte[] buffer = new byte[1024];
- ZipOutputStream zipOutputStream =
- new ZipOutputStream(new FileOutputStream(realTargetJarFile));
+ JarOutputStream zipOutputStream =
+ new JarOutputStream(new FileOutputStream(realTargetJarFile));
for (String jarFile : jarFiles) {
