From bfd98aeeca9ca28a2414a1a287a2a1dca6b01a8b Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Fri, 12 Nov 2021 15:09:38 -0500 Subject: [PATCH] Mark the Log4j2PluginsCacheFileTransformer as cacheable. This transfomer doesn't take any custom inputs; it has deterministic behaviour based on the files getting shaded. This means it doesn't pose any additional requirements on the cacheability of the overall ShadowJar task. Therefore we should be able to mark it cacheable. --- .../shadow/transformers/Log4j2PluginsCacheFileTransformer.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/transformers/Log4j2PluginsCacheFileTransformer.groovy b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/transformers/Log4j2PluginsCacheFileTransformer.groovy index b82e210e1..7f90dff1b 100644 --- a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/transformers/Log4j2PluginsCacheFileTransformer.groovy +++ b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/transformers/Log4j2PluginsCacheFileTransformer.groovy @@ -41,6 +41,7 @@ import static org.apache.logging.log4j.core.config.plugins.processor.PluginProce * @see edwgiz/maven-shaded-log4j-transformer * @see PluginsCacheFileTransformer.java */ +@CacheableTransformer class Log4j2PluginsCacheFileTransformer implements Transformer { private final List temporaryFiles