File tree 1 file changed +2
-4
lines changed
src/main/java/org/skife/waffles
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 14
14
package org .skife .waffles ;
15
15
16
16
import org .apache .commons .compress .archivers .jar .JarArchiveOutputStream ;
17
- import org .apache .commons .compress .archivers .zip .ZipArchiveEntry ;
18
- import org .apache .commons .compress .archivers .zip .ZipArchiveEntryPredicate ;
17
+ import org .apache .commons .compress .archivers .zip .Zip64Mode ;
19
18
import org .apache .commons .compress .archivers .zip .ZipFile ;
20
19
import org .apache .maven .artifact .Artifact ;
21
20
import org .apache .maven .plugin .AbstractMojo ;
46
45
import static java .nio .charset .StandardCharsets .US_ASCII ;
47
46
import static java .nio .charset .StandardCharsets .UTF_8 ;
48
47
import static java .nio .file .Files .readAllBytes ;
49
- import static org .apache .commons .compress .archivers .zip .Zip64Mode .AlwaysWithCompatibility ;
50
48
51
49
/**
52
50
* Make an artifact generated by the build really executable. The resulting artifact
@@ -177,7 +175,7 @@ private void makeExecutable(File file)
177
175
Files .move (file .toPath (), original );
178
176
try (JarArchiveOutputStream jar = new JarArchiveOutputStream (Files .newOutputStream (file .toPath ()))) {
179
177
jar .writePreamble (getPreamble (original .toUri ()));
180
- jar .setUseZip64 (AlwaysWithCompatibility );
178
+ jar .setUseZip64 (Zip64Mode . AsNeeded );
181
179
jar .setEncoding (UTF_8 .name ());
182
180
183
181
try (ZipFile zip = new ZipFile (original .toFile ())) {
You can’t perform that action at this time.
0 commit comments