Skip to content

Commit c2032f5

Browse files
committed
Exclude META-INF/maven from shaded libraries
1 parent 2e959d3 commit c2032f5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/distro/agent/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ CopySpec isolateClasses(Iterable<File> jars) {
4646
exclude("META-INF/INDEX.LIST")
4747
exclude("META-INF/*.DSA")
4848
exclude("META-INF/*.SF")
49+
exclude("META-INF/maven/**")
50+
exclude("META-INF/MANIFEST.MF")
4951
}
5052
}
5153
}

javaagent/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ fun CopySpec.isolateClasses(jar: Provider<RegularFile>) {
383383
exclude("META-INF/INDEX.LIST")
384384
exclude("META-INF/*.DSA")
385385
exclude("META-INF/*.SF")
386+
exclude("META-INF/maven/**")
387+
exclude("META-INF/MANIFEST.MF")
386388
}
387389
}
388390

0 commit comments

Comments
 (0)