[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


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 {

Whereas repositories.mc() does work.

Comment by Helmut Denk [ 03/Mar/10 ]

this is a very natural way to provide custom-repos
by plugin.

nice feature. will use it, once it works.

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