Skip to content

Commit

Permalink
Remove TrueZIP (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Dec 13, 2024
1 parent 1efdcbd commit 52b808b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 261 deletions.
21 changes: 0 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<jenkins.baseline>2.452</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.4</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<truezip.version>7.7.10</truezip.version>
<!-- TODO fix violations -->
<spotbugs.threshold>High</spotbugs.threshold>
</properties>
Expand Down Expand Up @@ -57,26 +56,6 @@
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>commons-compress-api</artifactId>
</dependency>
<dependency>
<groupId>de.schlichtherle.truezip</groupId>
<artifactId>truezip-driver-zip</artifactId>
<version>${truezip.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>de.schlichtherle.truezip</groupId>
<artifactId>truezip-file</artifactId>
<version>${truezip.version}</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-api</artifactId>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.BuildListener;
import hudson.util.io.ArchiverFactory;

import java.io.File;
import java.io.FileNotFoundException;
Expand All @@ -44,16 +45,15 @@
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

import javax.annotation.Nonnull;

import jenkins.util.VirtualFile;

import org.springframework.web.util.UriUtils;

import de.schlichtherle.truezip.zip.ZipEntry;
import de.schlichtherle.truezip.zip.ZipFile;

final class ZipStorage extends VirtualFile {

static VirtualFile root(File archive) {
Expand All @@ -67,7 +67,7 @@ static void archive(File archive, FilePath workspace, Launcher launcher, BuildLi

OutputStream os = new FileOutputStream(tempArchive);
try {
workspace.archive(TrueZipArchiver.FACTORY, os, new FilePath.ExplicitlySpecifiedDirScanner(artifacts));
workspace.archive(ArchiverFactory.ZIP, os, new FilePath.ExplicitlySpecifiedDirScanner(artifacts));
} finally {
os.close();
}
Expand Down

This file was deleted.

0 comments on commit 52b808b

Please sign in to comment.