-
Notifications
You must be signed in to change notification settings - Fork 853
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
Change aws-sdk-java to an optional dependency #4797
Conversation
Having it as a normal dependency causes third dependencies like SLF4J to also be included, unshaded in the JAR.
Could you please elaborate on where is this design exist ? Are there any cases of backward incompatibility issues ?, as in when there is version upgraded can we have class not found runtime issues ? Why dont we exclude the third dependencies like SLF4J explicitly ? |
It's only a hunch, but we can fix this later if needed since
not sure what you mean by this. We can exclude the classes because they're used for logging. They're shaded so that other libraries don't use them. |
I meant something like this
|
See #4778 for context. We don't want to exclude SLF4J entirely, we just want to make sure only the shaded classes are in the JAR. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Hi, which SDK release version contains this fix? |
Having it as a normal dependency causes third dependencies like SLF4J to also be included, unshaded in the JAR.
Motivation and Context
Modifications
Testing
Build the
bundle
JAR using thepublishing
profile:Open the generated JAR and verify that there are no unshaded dependencies apart from
org.reactivestreams
which I believe is by design (this is also true for older versions of the Bundle).Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License