Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Jan 1, 2025
1 parent 2270e17 commit 64b3f53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/docs/configuration/merging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This allows a [`Transformer`](https://gradleup.com/shadow/api/com/github/jengelm
determine if it should process a particular entry and apply any modifications before writing the stream to the output.

```groovy
// Adding a Transformer
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
import com.github.jengelman.gradle.plugins.shadow.transformers.TransformerContext
import javax.annotation.Nonnull
Expand Down Expand Up @@ -37,6 +38,7 @@ tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.Shadow
Additionally, a `Transformer` can accept a `Closure` to configure the provided `Transformer`.

```groovy
// Configuring a Transformer
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
import com.github.jengelman.gradle.plugins.shadow.transformers.TransformerContext
import javax.annotation.Nonnull
Expand Down Expand Up @@ -69,6 +71,7 @@ tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.Shadow
An instantiated instance of a `Transformer` can also be provided.

```groovy
// Adding a Transformer Instance
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
import com.github.jengelman.gradle.plugins.shadow.transformers.TransformerContext
import javax.annotation.Nonnull
Expand Down

0 comments on commit 64b3f53

Please sign in to comment.