pomegranate icon indicating copy to clipboard operation
pomegranate copied to clipboard

Support `<packaging>` from POM to indicate default fallback value for `:extension`

Open dhleong opened this issue 6 years ago • 1 comments

Probably not a big issue for many people, but the current behavior is problematic for use with lein-droid and Android. As mentioned here, pomegranate defaults to jar if the extension of a dependency isn't provided, which it usually is not for transitive dependencies. The problem is that a lot of Android dependencies are packaged as .aar. The good thing is this seems to be indicated in the pom file (example).

Not sure if it's possible to use this information with Aether somehow, or if this is a problem with Aether itself. Also, lein-droid doesn't seem to be maintained anymore anyway, but I thought I'd file this anyway.

dhleong avatar Feb 12 '19 19:02 dhleong

I think you could probably address this by making :managed-coordinates more dynamic, allowing it to incrementally influence dependency resolution, but the details are sure to be hairy.

cemerick avatar Apr 02 '19 18:04 cemerick

There has been no activity on this for some years, closing as stale. Please re-open if you have an interest.

lread avatar Jan 17 '23 17:01 lread