[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. |