-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
WARNING: Module 'com.github.bumptech.glide:glide:4.1.0' depends on one or more Android Libraries but is a jar #2318
Comments
You can slap a qualifier on the dependency, I think: |
Thanks. |
I wonder what conditions bring this up. I don't remember having this problem before. @sjudd maybe there's no point publishing the jar any more. I guess before AAR wasn't widely supported, and the JAR artifact is a legacy of that? |
Looks like it. AAR comes from: https://github.com/bumptech/glide/blob/master/library/build.gradle and its "main" package is the JAR: https://github.com/bumptech/glide/blob/master/glide/gradle.properties#L3. We should just publish the project as an AAR. |
It needs to be:
Need the |
The aar dependency is probably the new componentized support libraries. I can probably just revert that for the next version. It's not a big deal to publish as AAR though. It would fix the view id conflict with ViewTarget. The reason it's published as a jar is simplicity (not so much of an issue now that everything is using gradle) and because aars didn't used to be supported. What's more convenient for everyone? |
Aah, I remember now. I think we can keep using JAR published, but support-fragment probably needs to change from This may require the new (3.x) Gradle plugin to actually work, long time since played around. |
As far as I remember, an AAR library depending on another AAR with compile repackages everything, so the merger takes a lot of time, that's why provided works well. |
I believe this is fixed, if someone can verify using the Snapshot, I'd appreciate it. |
@sjudd Thanks. The |
@jaredsburrows I guess you just noticed the |
@TWiStErRob I saw the |
Ah, tricky versions... thanks for checking! |
I am facing the same issue in version 4.4.0. Should I downgrade to some lower version? |
Ugh yeah I meant to change this to aar. Does this actually break? Or just warn? |
Actually this is already done: https://github.com/bumptech/glide/blob/b4b45791cca6b72345a540dcaa71a358f5706276/library/gradle.properties. Do all AAR libraries require you to specify |
http://central.maven.org/maven2/com/github/bumptech/glide/disklrucache/4.4.0/disklrucache-4.4.0.pom Are missing any mention of packaging, jar, or aar, despite differing values in gradle.properties. |
Huh and I actually don't see the warning at all in a sample project: https://github.com/sjudd/Base64ModelLoaderExample. I did find a way to get packaging into the pom, but unless someone tells me this breaks something, we'll fix in in 4.5 |
Repro:
4.1.0
gradlew assembleDebug
Warning output:
The text was updated successfully, but these errors were encountered: