Skip to content

Commit

Permalink
extract shadow jar for spring and javaagent separately
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed May 3, 2024
1 parent 2ddaae5 commit dad8cd5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
}
}
Expand Down

0 comments on commit dad8cd5

Please sign in to comment.