This is an automated email from the ASF dual-hosted git repository. exceptionfactory pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nifi.git
commit 5d702671f63b75e50a8675d981df5981916abda5 Author: dan-s1 <[email protected]> AuthorDate: Mon May 13 17:57:37 2024 +0000 NIFI-13222 Replaced deprecated commons-compress IOUtils.closeQuietly This closes #8822 Signed-off-by: David Handermann <[email protected]> --- c2/c2-client-bundle/c2-client-service/pom.xml | 4 ++++ .../c2/client/service/operation/TransferDebugOperationHandler.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/c2/c2-client-bundle/c2-client-service/pom.xml b/c2/c2-client-bundle/c2-client-service/pom.xml index 7a9260f7e9..eb03b5c6be 100644 --- a/c2/c2-client-bundle/c2-client-service/pom.xml +++ b/c2/c2-client-bundle/c2-client-service/pom.xml @@ -52,6 +52,10 @@ limitations under the License. <artifactId>c2-protocol-api</artifactId> <version>2.0.0-SNAPSHOT</version> </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-compress</artifactId> diff --git a/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java b/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java index f44f39246e..4544b07dd8 100644 --- a/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java +++ b/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java @@ -24,7 +24,7 @@ import static java.nio.file.Files.walk; import static java.util.Collections.emptyMap; import static java.util.Optional.empty; import static java.util.Optional.ofNullable; -import static org.apache.commons.compress.utils.IOUtils.closeQuietly; +import static org.apache.commons.io.IOUtils.closeQuietly; import static org.apache.commons.lang3.StringUtils.EMPTY; import static org.apache.nifi.c2.protocol.api.C2OperationState.OperationState.FULLY_APPLIED; import static org.apache.nifi.c2.protocol.api.C2OperationState.OperationState.NOT_APPLIED;
