diff --git a/instrumentation/r2dbc-1.0/library-instrumentation-shaded/build.gradle.kts b/instrumentation/r2dbc-1.0/library-instrumentation-shaded/build.gradle.kts index a12743c767ae..7551f9c0cf68 100644 --- a/instrumentation/r2dbc-1.0/library-instrumentation-shaded/build.gradle.kts +++ b/instrumentation/r2dbc-1.0/library-instrumentation-shaded/build.gradle.kts @@ -30,6 +30,13 @@ tasks { val extractShadowJar by registering(Copy::class) { dependsOn(shadowJar) from(zipTree(shadowJar.get().archiveFile)) + exclude("META-INF/**") into("build/extracted/shadow") } + + val extractShadowJarSpring by registering(Copy::class) { + dependsOn(shadowJar) + from(zipTree(shadowJar.get().archiveFile)) + into("build/extracted/shadow-spring") + } } diff --git a/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts b/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts index bef2dd6d6737..38199861d7a9 100644 --- a/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts +++ b/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts @@ -15,8 +15,8 @@ sourceSets { main { val shadedDep = project(":instrumentation:r2dbc-1.0:library-instrumentation-shaded") output.dir( - shadedDep.file("build/extracted/shadow"), - "builtBy" to ":instrumentation:r2dbc-1.0:library-instrumentation-shaded:extractShadowJar", + shadedDep.file("build/extracted/shadow-spring"), + "builtBy" to ":instrumentation:r2dbc-1.0:library-instrumentation-shaded:extractShadowJarSpring", ) } }