Skip to content

Commit 7553bc8

Browse files
committed
Exclude META-INF/maven from shaded libraries
1 parent 94ce828 commit 7553bc8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

agent/agent-for-testing/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ fun CopySpec.isolateClasses(jars: Iterable<File>) {
8686
from(zipTree(it)) {
8787
into("inst")
8888
rename("^(.*)\\.class\$", "\$1.classdata")
89+
exclude("META-INF/maven/**")
8990
}
9091
}
9192
}

agent/agent/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ fun CopySpec.isolateClasses(jars: Iterable<File>) {
207207
rename("^(.*)\\.class\$", "\$1.classdata")
208208
// Rename LICENSE file since it clashes with license dir on non-case sensitive FSs (i.e. Mac)
209209
rename("""^LICENSE$""", "LICENSE.renamed")
210+
exclude("META-INF/maven/**")
210211
}
211212
}
212213
from("${rootProject.projectDir}/LICENSE") {

0 commit comments

Comments
 (0)