Skip to content

Commit 6a61822

Browse files
GooolerCopilot
andauthored
Update src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/DeduplicatingResourceTransformer.kt
Co-authored-by: Copilot <[email protected]>
1 parent 63554d8 commit 6a61822

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/DeduplicatingResourceTransformer.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ import org.gradle.api.tasks.util.PatternSet
4040
*
4141
* ```kotlin
4242
* tasks.shadowJar {
43-
* // Keep pom.* files from different Guava versions in the jar.
44-
* exclude("META-INF/maven/com.google.guava/guava/pom.*")
45-
* // Duplicates with different content for all other resource paths will raise an error.
43+
* transform(DeduplicatingResourceTransformer::class.java) {
44+
* // Keep pom.* files from different Guava versions in the jar.
45+
* exclude("META-INF/maven/com.google.guava/guava/pom.*")
46+
* // Duplicates with different content for all other resource paths will raise an error.
47+
* }
4648
* }
4749
* ```
4850
*

0 commit comments

Comments
 (0)