From 1a4e70fd17c00aeb343388cbc94f5eabf4e349ba Mon Sep 17 00:00:00 2001 From: yahavi Date: Fri, 14 Jun 2024 15:50:37 +0300 Subject: [PATCH] Bump commons-compress to 1.26.2 --- .../org/jfrog/build/extractor/npm/extractor/NpmPublish.java | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-info-extractor-npm/src/main/java/org/jfrog/build/extractor/npm/extractor/NpmPublish.java b/build-info-extractor-npm/src/main/java/org/jfrog/build/extractor/npm/extractor/NpmPublish.java index be1550372..44e0c4f25 100644 --- a/build-info-extractor-npm/src/main/java/org/jfrog/build/extractor/npm/extractor/NpmPublish.java +++ b/build-info-extractor-npm/src/main/java/org/jfrog/build/extractor/npm/extractor/NpmPublish.java @@ -2,7 +2,7 @@ import org.apache.commons.collections4.MultiValuedMap; import org.apache.commons.collections4.multimap.ArrayListValuedHashMap; -import org.apache.commons.compress.archivers.tar.TarArchiveEntry; +import org.apache.commons.compress.archivers.ArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream; import org.apache.commons.lang3.StringUtils; @@ -118,7 +118,7 @@ private void readPackageInfoFromTarball() throws IOException { } try (TarArchiveInputStream inputStream = new TarArchiveInputStream( new GzipCompressorInputStream(new BufferedInputStream(Files.newInputStream(path.toFile().toPath()))))) { - TarArchiveEntry entry; + ArchiveEntry entry; while ((entry = inputStream.getNextEntry()) != null) { Path parent = Paths.get(entry.getName()).getParent(); if (parent != null && StringUtils.equals(parent.toString(), "package") && StringUtils.endsWith(entry.getName(), "package.json")) { diff --git a/build.gradle b/build.gradle index c54358561..ecfd84151 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { antVersion = '1.10.12' buildInfoExtractorVersion = '4.29.4' commonsCodecVersion = '1.15' - commonsCompressVersion = '1.26.0' + commonsCompressVersion = '1.26.2' commonsIoVersion = '2.11.0' commonsLang3Version = '3.12.0' commonsLoggingVersion = '1.2'