Skip to content

Commit

Permalink
Merge service files in shadowJar
Browse files Browse the repository at this point in the history
The service loader won't work with the package names before relocation unless a user happens to have those on the classpath, in which case the service descriptor file will clash with what is already on the user's classpath. We should use our relocated shaded package and combine service descriptor files if multiple exist.

Resolves gh-3268
  • Loading branch information
shakuzen committed Jul 6, 2022
1 parent bce0e58 commit 1b5897d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions implementations/micrometer-registry-statsd/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ shadowJar {
from "$rootDir/LICENSE"
from "$rootDir/NOTICE"
}
mergeServiceFiles()
}

// The Nebula Publishing plugin automatically configures the publication of the shadow jar but
Expand Down

0 comments on commit 1b5897d

Please sign in to comment.