Skip to content

Commit

Permalink
Exclude META-INF/maven from shaded libraries (#4040)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Jan 22, 2025
1 parent 42b6730 commit a874c5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent/agent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ fun CopySpec.isolateClasses(jars: Iterable<File>) {
rename("^(.*)\\.class\$", "\$1.classdata")
// Rename LICENSE file since it clashes with license dir on non-case sensitive FSs (i.e. Mac)
rename("""^LICENSE$""", "LICENSE.renamed")
// excluding pom.xml files that are embedded in several dependencies
// in order to avoid false positives from security scanners
exclude("META-INF/maven/**")
}
}
from("${rootProject.projectDir}/LICENSE") {
Expand Down

0 comments on commit a874c5e

Please sign in to comment.