Skip to content

Commit b4b9ff2

Browse files
committed
Fixing groovy syntax error
The value was given the wrong name as I was porting code over. This would have been a compiler error in Java, but groovy doesn't have the same issue which is why it's a runtime error instead.
1 parent 1b60f3a commit b4b9ff2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/groovy/com/github/jengelman/gradle/plugins/shadow/transformers/Log4j2PluginsCacheFileTransformer.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ import org.apache.commons.io.IOUtils
2626
import org.apache.commons.io.output.CloseShieldOutputStream
2727
import org.apache.logging.log4j.core.config.plugins.processor.PluginCache
2828
import org.apache.logging.log4j.core.config.plugins.processor.PluginEntry
29+
import org.apache.tools.zip.ZipEntry
2930
import org.apache.tools.zip.ZipOutputStream
3031
import org.gradle.api.file.FileTreeElement
3132

32-
import java.util.zip.ZipEntry
33-
3433
import static org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor.PLUGIN_CACHE_FILE;
3534

3635
/**
@@ -82,7 +81,7 @@ class Log4j2PluginsCacheFileTransformer implements Transformer {
8281
}
8382

8483
@Override
85-
void modifyOutputStream(ZipOutputStream jos) {
84+
void modifyOutputStream(ZipOutputStream zipOutputStream) {
8685
PluginCache pluginCache = new PluginCache()
8786
pluginCache.loadCacheFiles(getUrlEnumeration())
8887
relocatePlugins(pluginCache)

0 commit comments

Comments
 (0)