-
Notifications
You must be signed in to change notification settings - Fork 159
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
Issues using the Android Archive Library
hosted at jitpack.io
#156
Comments
Does #132 released in version 0.4.0 fix it for you? |
I am using 0.3.3 and the issue is still there. |
Can you update to 0.4.0 and check again? |
I just updated the library to 0.4.0, looks like the previous problem is solved.
instead of creating a copy?
|
Please check #122, #123 and #132 for reasoning behind shadowing dependencies. When it comes to the new issue you are encountering, does this Stack Overflow answer help? |
I understand that you have issues supporting @bartekn excluding the META-INF is a work around. Since I will end up having two different versions of |
@bartekn now that we have gotten rid of jersey, we can try rolling back the shadowing. The spring boot problems were related to that. The main remaining issue would be the android specific guava dependency. I would argue simply removing that and working around the few places where it was actually needed. I think the main reason was base64 encoding/decoding. There are other libraries we can use for that. |
@jillesvangurp are you still going to keep the fat JAR/AAR approach? |
I'm a backend guy, I know nothing of AARs. But please if you have time, doing a PR to get rid of shading and the android guava dependency would unblock this. I'm bogged down in other stuff currently so no time to do this myself but should be fairly easy to do. |
Java SDK is updated quite often so I think having two SDKs that are almost the same (except small details to make it work in Android) will make it super hard to keep everything in sync. Obviously if there's no other way we'll have to do it but I really want to avoid it. And it seems that except some small problems you can still use it in Android, right?
I think this is actually good. Let's say you upgrade your |
Most SDKs expose all the dependencies, I do not see the benefit of shadowing libraries here. Imagine that I have 3 SDKs like On the other hand, @jillesvangurp said that shadowing is not needed anymore? |
The StackOverflow answer is not working for me and I still get |
Hi @Meshkati , you can check blockEQ project I solved that issue there. |
Hi @sreuland, I think now we can pick up this issue again. Personally, I also prefer not to use shadow. What do you think? |
yes, removing shadowing would be compelling to reduce complexity of distribution and give some control of overlapping dependencies back to the user through transitive dependency management, sounds like worth trying it out in a draft pr to see how it shapes up, another issue to carve out may be to consider publishing the lib to maven central repo rather than jitpack, so, users don't have to add that repo to their build, as maven central is included by default. there have been multiple issues reported on class loader with okhttp, shadowing just makes it more complicated, #457 was another somewhat recent pr on related fix. orthogonal to shadowing, but to mention in context here, there is also modernization of dependencies on #496, which is suggesting to remove okhttp in any case in favor of much lower footprint of native http client instead which could alleviate some of this from a different angle. |
We have removed shadow in 0.41.0. |
Currently the AAR hosted at
https://jitpack.io
includes a local copy of all dependencies.The dependencies should be defined as any other maven library using transitive dependencies.
Now, for example I am working with retrofit / okhttp 3.12.0 and I am having plenty of clashes and errors. It is impossible to either debug looking at the dependency graph or excluding the dependencies from stellar library. Also it is not straight forward to see which okhttp is bundled inside.
On the other hand, to be able to use the library from jitpack I am forced to disable transitive dependencies since the library is clashing with himself.
The text was updated successfully, but these errors were encountered: