Skip to content

Commit 1b5897d

Browse files
committed
Merge service files in shadowJar
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
1 parent bce0e58 commit 1b5897d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

implementations/micrometer-registry-statsd/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ shadowJar {
4242
from "$rootDir/LICENSE"
4343
from "$rootDir/NOTICE"
4444
}
45+
mergeServiceFiles()
4546
}
4647

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

0 commit comments

Comments
 (0)