-
Notifications
You must be signed in to change notification settings - Fork 38
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
chore(build): add maven shade plugin where missing #165
Conversation
Why exactly is the classpath bundle failing? If all connectors and the runtime use the same Jackson version, it should just work fine, shouldn't it? Might rather point out a version mismatch issue we have somewhere else. 🤔 |
There's still a mismatch between the versions used in We may also fix this by releasing the new version of the SDK, but I think it will also be nice to keep jackson shaded, otherwise we'll still face this issue in the future. Besides, since SDK & runtime and bundle have different version semantics, someone will inevitably try to use the mismatching versions in a Docker bundle and catch this error. |
On the other hand, we can create one shaded dependency for the whole bundle, e.g. |
Ok I see, makes sense. Also provides a good practice template for others maybe. I was wondering if we should exclude this shading when we build the default Maven Bundle. It shouldn't be necessary there and might actually create some overhead we don't need. But just a thought, might also be wrong. |
Good point. As far as I can see by inspecting the resulting JARs, this shade is not applied when building the default bundle - it's only active for individual |
Yeah, makes sense actually, now that I think about it. The bundle uses the "plain" artifacts of the Connectors as dependencies. Thanks for looking into it. I think the idea with a common relocation for all Connectors is really nice. 👍 |
Description
Maven Shade plugin config is missing in most connectors, which leads to failures during classpath bundling (without Maven)
Related issues
related to https://github.com/camunda/team-connectors/issues/258