Gradle fails to resolve classifier when using mavenLocal

issue-acknowledged
gradle-3501

(Peter WIlkinson) #1

I’ve got a couple of artifacts in artifactory that are distribution zips.

e.g.
my.group:my-id:1.0.0@zip
my.group:my-id:1.0.0@tar.gz

I’ve set gradle to check my local maven repo 1st and then check Artifactory. (So that I can see other artifacts that are produced by maven builds that I am building locally as part of my dev work and aren’t published to Artifactory)

If my local maven repo is empty then gradle is happy to download these from Artifactory. However if my local maven repo contains only the zip then gradle will fail when trying to find the tar.gz and vice-versa.

This feels like a bug to me, but I’m pretty fresh to Gradle so the usual disclaimers apply.

At the moment the only way I can think of to work around this to completely change the maven coordinates to something like:

my.group:my-id-zip:1.0.0@zip
my.group:my-id-tar-gz:1.0.0@tar.gz

Any thoughts or pointers will be appreciated.
Regards,
Peter


(Peter WIlkinson) #2

I should probably mention that I originally listed mavenLocal last in an attempt to work around this, however I ran into issues where a snapshot version had been deployed to Artifactory and was being used instead of my locally built version of the snapshot dependency.


(Peter WIlkinson) #3

Hmm, I was hoping that reporting a bug would evoke some sort of response.


(Peter WIlkinson) #4

Bump bumpity bump and bump


(Mark Vieira) #5

Thanks for the report. I’ve recorded this issue as GRADLE-3501.