Merge META-INF/services in shaded uber-JAR

Add ServicesResourceTransformer so overlapping service-provider files
(e.g. java.security.Provider) are concatenated rather than clobbered,
future-proofing the single executable JAR build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-12 22:24:46 +00:00
parent 0f76258a05
commit 80467f5bc0

View File

@@ -66,6 +66,10 @@
<Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access> <Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access>
</manifestEntries> </manifestEntries>
</transformer> </transformer>
<!-- Merge overlapping META-INF/services entries (e.g. java.security.Provider)
instead of letting one dependency's file overwrite another's. -->
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers> </transformers>
</configuration> </configuration>
</execution> </execution>