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
Make API depend only on jackson-annotations
#1279
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1279 +/- ##
======================================
Coverage 75% 75%
======================================
Files 1 1
Lines 16 16
======================================
Hits 12 12
Misses 3 3
Partials 1 1 Continue to review full report at Codecov.
|
Is it possible to use https://github.com/FasterXML/jackson-annotations as the dependency and keep this existing annotations ? |
Why would you want to keep them? The goal is to make API have zero dependencies. |
I feel that the inclusion of a dependency of jackson-annotations (small api footprint) is a more simplistic solution than custom annotations and a custom JacksonAnnotationIntrospector. This would similar to the inclusion of slf4j-api. |
Unlike Slf4j, Jackson does not provide an "api" artifact. It brings two dependencies (annotations and core) and makes it extremely hard to shade. So, unless there is any issue with the introspection, I would like to proceed. |
I'm suggesting using this dependency - it has no dependency on core - it just contains the annotations. Now if that doesn't include all the annotations in use - then the custom annotations would be needed.
|
@darinhoward ok, although I think we can/should avoid Jackson in the public API, I guess a good first step will be to only use Although I kept |
jackson-annotations
This change is