Skip to content

Commit

Permalink
Remove commons-io:commons-io
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Sep 22, 2024
1 parent 1cf9d19 commit 78cef36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies {

implementation("org.jdom:jdom2:2.0.6.1")
implementation("org.ow2.asm:asm-commons:9.7")
implementation("commons-io:commons-io:2.17.0")
implementation("org.apache.ant:ant:1.10.15")
implementation("org.codehaus.plexus:plexus-utils:4.0.1")
implementation("org.codehaus.plexus:plexus-xml:4.0.4")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import java.io.FileOutputStream
import java.net.URL
import java.util.Collections
import java.util.Enumeration
import org.apache.commons.io.IOUtils
import org.apache.commons.io.output.CloseShieldOutputStream
import org.apache.logging.log4j.core.config.plugins.processor.PluginCache
import org.apache.tools.zip.ZipEntry
Expand All @@ -34,7 +33,7 @@ class Log4j2PluginsCacheFileTransformer : Transformer {
temporaryFile.deleteOnExit()
temporaryFiles.add(temporaryFile)
FileOutputStream(temporaryFile).use { fos ->
IOUtils.copy(inputStream, fos)
inputStream.copyTo(fos)
}
relocators.addAll(context.relocators)
if (stats == null) {
Expand Down

0 comments on commit 78cef36

Please sign in to comment.