Skip to content

Unable to transform file with multiple transformers #439

@davidbokor

Description

@davidbokor

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions