From fa7e8b5fb877c771b33cd6edc80aec4ce49f96dd Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Tue, 7 Jan 2025 21:57:30 +0200 Subject: [PATCH] Exclude META-INF/maven from shaded libraries (#13007) --- examples/distro/agent/build.gradle | 2 ++ javaagent/build.gradle.kts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/distro/agent/build.gradle b/examples/distro/agent/build.gradle index 3045dbaeca8a..828f19223308 100644 --- a/examples/distro/agent/build.gradle +++ b/examples/distro/agent/build.gradle @@ -46,6 +46,8 @@ CopySpec isolateClasses(Iterable jars) { exclude("META-INF/INDEX.LIST") exclude("META-INF/*.DSA") exclude("META-INF/*.SF") + exclude("META-INF/maven/**") + exclude("META-INF/MANIFEST.MF") } } } diff --git a/javaagent/build.gradle.kts b/javaagent/build.gradle.kts index 0ba6357857de..48549c0b2053 100644 --- a/javaagent/build.gradle.kts +++ b/javaagent/build.gradle.kts @@ -383,6 +383,8 @@ fun CopySpec.isolateClasses(jar: Provider) { exclude("META-INF/INDEX.LIST") exclude("META-INF/*.DSA") exclude("META-INF/*.SF") + exclude("META-INF/maven/**") + exclude("META-INF/MANIFEST.MF") } }