[GRADLE-1794] Gradle does not download transitive dependencies that are in subsequent mavenRepo urls Created: 14/Sep/11 Updated: 04/Jan/13 Resolved: 17/Sep/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-4 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Matt Callanan | Assignee: | Unassigned |
Resolution: | Not A Bug | Votes: | 0 |
Description |
Need to be able to download POMs from more than one mavenRepo url.
A workaround for now:
Tried to find a better approach but could only see this explanation]:
|
Comments |
Comment by Daz DeBoer [ 14/Sep/11 ] |
For a single defined maven repository, gradle will only use the first defined URL to locate POMs, subsequent URLs are only used to locate artifacts referenced by POMs in the first location. Unfortunately, the DSL syntax is unclear; see In your case, you want to look up POMS + artifacts in 2 different maven repositories. This is done by declaring 2 repositories: repositories { mavenRepo urls: "http://.../public" mavenRepo urls: "http://.../inhouse" } |
Comment by Matt Callanan [ 14/Sep/11 ] |
Ah, that explains it. Thanks Daz, works fine now. |