[GRADLE-2073] Documentation on "Managing domain objects" in custom plugin section needs updating to the new plugin.extensions syntax Created: 30/Jan/12  Updated: 04/Jan/13  Resolved: 06/Feb/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-7, 1.0-milestone-8
Fix Version/s: 1.0-milestone-8

Type: Bug
Reporter: Matias Bjarland Assignee: René Gröschke (Inactive)
Resolution: Fixed Votes: 0


 Description   

The section at the following link:

http://gradle.org/docs/1.0-milestone-7/userguide/custom_plugins.html#domainObjectContainer

has the following method in it:

class DocumentationPlugin implements Plugin<Project> {
    def void apply(Project project) {
        def books = project.container(Book)
        books.all {
            sourceFile = project.file("src/docs/$name")
        }
        project.convention.plugins.documentation = new DocumentationPluginConvention(books)
    }
}

we should change the "project.convention.plugins" syntax to use the new "project.extensions" syntax introduced in m5.



 Comments   
Comment by Adam Murdoch [ 06/Feb/12 ]

Reopening to change fix-for field.

Generated at Wed Jun 30 12:12:05 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.