Skip to content

Commit a874c5e

Browse files
authored
Exclude META-INF/maven from shaded libraries (#4040)
1 parent 42b6730 commit a874c5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/agent/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ 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+
// excluding pom.xml files that are embedded in several dependencies
211+
// in order to avoid false positives from security scanners
212+
exclude("META-INF/maven/**")
210213
}
211214
}
212215
from("${rootProject.projectDir}/LICENSE") {

0 commit comments

Comments
 (0)