Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Fat Jar Assembly Issue #198

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

maxlambrecht
Copy link
Member

This PR updates the shadowJar configuration by adding mergeServiceFiles(). This adjustment ensures SPI files are properly merged in fat jars, avoiding overwrites and enabling the Service Loader to function correctly. This fix is essential for addressing the java.lang.IllegalStateException: Could not find policy 'pick_first' error, ensuring the necessary implementations are registered in the LoadBalancerRegistry and included in META-INF/services/io.grpc.LoadBalancerProvider.

Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
@maxlambrecht maxlambrecht merged commit 77f3893 into spiffe:main Jan 24, 2024
7 checks passed
@maxlambrecht maxlambrecht deleted the add-shadowjar-config branch January 24, 2024 23:56
moritzschmitz-oviva pushed a commit to moritzschmitz-oviva/java-spiffe that referenced this pull request Feb 1, 2024
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
Signed-off-by: Moritz Schmitz von Hülst <moritz.schmitz@oviva.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants