[GRADLE-837] Configure closure can't delegate to convention methods Created: 03/Mar/10 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | 0.9 |
| Fix Version/s: | 0.9-rc-1 |
| Type: | Bug | ||
| Reporter: | Hans Dockter | Assignee: | Adam Murdoch |
| Resolution: | Fixed | Votes: | 0 |
| Description |
|
The following code does not work: apply id: 'java' repositories.convention.plugins.grails = new GrailsConvention(repositories) class GrailsConvention { def repositories def GrailsConvention(def repositories) { this.repositories = repositories } def mc() { repositories.mavenCentral() } } repositories { mc() } Whereas repositories.mc() does work. |
| Comments |
| Comment by Helmut Denk [ 03/Mar/10 ] |
|
this is a very natural way to provide custom-repos nice feature. will use it, once it works. |