[GRADLE-2554] The name of repositories based on user supplied resolvers uses a hardcoded name Created: 14/Nov/12 Updated: 04/Jan/13 Resolved: 15/Nov/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.3-rc-1 |
Fix Version/s: | 1.3-rc-2 |
Type: | Bug | ||
Reporter: | Szczepan Faber | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Description |
project.repositories.add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) { name = "myLocalRepo" //in reality, more settings are configured, addIvyPattern, addArtifactPattern, and bunch of others. } task listRepos << { project.repositories.each { println it.name } } Above is a typical way of adding highly customised resolvers (e.g. repositories.ivy {} dsl element does not yet offer all the ivy configuration options). After running listRepos, the repository name is 'repository' instead of 'myLocalRepo'. This is different behavior to 1.2. I see that we've made the renaming of repository deprecated in 1.3. However, I don't see an alternative way of adding a customised ivy resolver with a custom name. |