Using version 2,.0.4 of the shadow plugin with Gradle 4.10.2, I have multiple custom transformers configured. If a single file passes the canTransformResource() filter for multiple transformers, only the first one configured gets executed.
My configuration basically looks like this:
shadowJar {
transform(Transformer1) {
}
transform(Transformer2) {
}
}
Transformer2.canTransformResource() never gets called while Transformer1.canTransformResource() actually gets called twice.
Is this meant to work or should I create a transformer that performs multiple transform actions?