[GRADLE-1184] SNAPSHOT modifier not working properly if more than one mavenRepo url is specified Created: 20/Oct/10  Updated: 04/Jan/13  Resolved: 14/Nov/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: 1.0-milestone-6

Type: Bug
Reporter: lucas gray Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

Trying to set up a SNAPSHOT build of a shared artifact, to be consumed by multiple projects. It appears that the SNAPSHOT upload always works fine, but the consumption of that artifact causes errors.

The consuming gradle script has the following for repositories:

repositories

{ mavenCentral() mavenRepo urls: ["http://my-local-maven/maven/", "http://displaytag.sourceforge.net/m2repo/"] }

This setup always fails to handle the SNAPSHOT correctly, but no SNAPSHOT works fine. What seems to happen is in the gradle cache on my local machine is that it'll generate the ivy metadata but won't create the my-project/jar folder. In fact, if the my-project/jar/mylib-1.0-SNAPSHOT.jar was in there correctly, once a newer SNAPSHOT is out there, it seems like the consuming script finds it, deletes the /jar folder, but fails to repopulate it.

Getting rid of the second mavenRepo url causes the SNAPSHOT functionality to work without any issues.


Generated at Wed Jun 30 11:49:07 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.