-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Make GSON and org.json dependencies optional #3278
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
base: master
Are you sure you want to change the base?
Conversation
Stop requiring GSON and org.json dependencies by decalring them 'optional' in the pom file as described in https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html This change will break existing projects that use the JSON jedis feature and don't have explict depedencies to GSON and org.json. Projects that don't use JSON would not longer have unwanted dependencies in their classpath
Codecov ReportBase: 66.94% // Head: 66.89% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3278 +/- ##
============================================
- Coverage 66.94% 66.89% -0.05%
+ Complexity 4635 4632 -3
============================================
Files 256 256
Lines 15014 15014
Branches 937 937
============================================
- Hits 10051 10044 -7
- Misses 4560 4565 +5
- Partials 403 405 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This is unlikely to be accepted, for the reasons mentioned in the description. Advanced and concerned users can now exclude those dependencies. |
Alright. Perhaps it can be accepted for the next major version if the JSON support remains implemented in the same way. |
Stop requiring GSON and org.json dependencies by declaring them 'optional' in the pom file as described in https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
This change will break existing projects that use the JSON jedis feature and don't have explicit dependencies to GSON and org.json. Projects that don't use JSON would not longer have unwanted dependencies in their class-path
See #2961 and #2962 for more information and rationale.