Skip to content

Commit

Permalink
Made transformer cacheable
Browse files Browse the repository at this point in the history
  • Loading branch information
Faqa committed Jan 23, 2023
1 parent 93be0a3 commit 3025d85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netty/shaded/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
import com.github.jengelman.gradle.plugins.shadow.transformers.CacheableTransformer
import com.github.jengelman.gradle.plugins.shadow.transformers.TransformerContext
import org.gradle.api.file.FileTreeElement
import shadow.org.apache.tools.zip.ZipOutputStream
Expand Down Expand Up @@ -140,6 +141,7 @@ tasks.named("test").configure {
* A Transformer which updates the Netty JAR META-INF/ resources to accurately
* reference shaded class names.
*/
@CacheableTransformer
class NettyResourceTransformer implements Transformer {

// A map of resource file paths to be modified
Expand Down

0 comments on commit 3025d85

Please sign in to comment.