-
Notifications
You must be signed in to change notification settings - Fork 33
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
Duplicate classes from com.fasterxml.jackson.jr.ob
and com.fasterxml.jackson.jr.type
in 2.11.0
#72
Comments
Library file directory structurejackson-jr-objects-2.11.0
jackson-jr-annotation-support-2.11.0
jackson-jr-stree-2.11.0
|
And jackson-jr-stree-2.10.0 does not have this problem, its directory structure is correct |
Thank you for reporting the issue! Not sure why -- perhaps shade plugin is accidentally enabled for stree and annotation-support somehow. Definitely should not include classes from jr-objects. |
Hmmh. Now this is weird -- I think the only change was to change dependency in pom.xml from test dep to regular. But this should not change inclusion at all, unless Maven has some odd setup. I guess I need to read more about Maven package tasks to see why contents of some sub-projects appear to be auto-included like this. :-( |
com.fasterxml.jackson.jr.ob
and com.fasterxml.jackson.jr.type
in 2.11.0
Figured it out: I think it is actually bundle-plugin (needed to make jars legit OSGi bundles) that ended up packaging too many things, and has to be configured. Should be fixed in 2.11.1. |
Before releasing the fixed version, you can use the following methods to circumvent the problem dependencies {
// do not dependency this
// implementation 'com.fasterxml.jackson.jr:jackson-jr-objects:2.11.0'
// minimum version of jackson-jr-annotation-support is 2.11.0
implementation('com.fasterxml.jackson.jr:jackson-jr-annotation-support:2.11.0'){
// filter jackson-jr-objects
exclude group: 'com.fasterxml.jackson.jr', module: 'jackson-jr-objects'
transitive = true
}
// must use 2.10.0
implementation('com.fasterxml.jackson.jr:jackson-jr-stree:2.10.0'){
// filter jackson-jr-objects
exclude group: 'com.fasterxml.jackson.jr', module: 'jackson-jr-objects'
transitive = true
}
} |
@CListery thank you for providing this work-around! |
I Use Gradle in the following way to dependencies these three libraries in a Android-Studio's project at the same time, a compilation crash will occur
Error log
The text was updated successfully, but these errors were encountered: