[GRADLE-1385] Disambiguate DSL for using separate Maven repos for POMs and Jars Created: 11/Feb/11 Updated: 04/Jan/13 Resolved: 29/Jun/12 | 
|
| Status: | Resolved | 
| Project: | Gradle | 
| Affects Version/s: | 0.9.2 | 
| Fix Version/s: | 1.0-milestone-5 | 
| Type: | Improvement | ||
| Reporter: | Peter Niederwieser | Assignee: | Unassigned | 
| Resolution: | Fixed | Votes: | 0 | 
| Description | 
| 
 I see people do the following: repositories {
  mavenRepo urls: ["http://repo/one", "http://repo/two", "http://repo/three"]
}
This looks like one had declared three equal repos. Looking up POM and Jar in different repos is a pretty special case. The syntax should reflect that. Alternatively, one could try to make it the default behavior so that no special syntax is needed anymore.  | 
| Comments | 
| Comment by Adam Murdoch [ 09/Sep/11 ] | 
| 
 I think we can close this. The maven repository DSL now looks like: 
repositories {
    maven { 
        url 'http://get-poms-and-artifacts-from-here'
        artifactUrls 'http://another-url', 'http://another-url-2'
    }
}
 | 
| Comment by Daz DeBoer [ 13/Sep/11 ] | 
| 
 Should we make this consistent with mavenCentral(), by deprecating "urls" in mavenCentral and adding "artifactUrls"?  | 
| Comment by Adam Murdoch [ 13/Sep/11 ] | 
| 
 yes we should.  | 
| Comment by Daz DeBoer [ 14/Sep/11 ] | 
| 
 In Milestone5, the syntax will be updated to: 
repositories {
    mavenCentral artifactUrls: "http://another-url"
    mavenRepo url: "http://.../main", artifactUrls: ["http://.../artifacts", "http://.../others"]
}
 |