Findbugs maxHeapSize nonexistent in Gradle 1.11

According to the API documentation http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.quality.FindBugs.html#org.gradle.api.plugins.quality.FindBugs:maxHeapSize there is a property I can set on findbugs for maxHeapSize. When I try to use it like this:

project.findbugs {
                ignoreFailures = true
                reportLevel = 'high'
                effort = 'min'
                maxHeapSize = project.hasProperty('findBugsHeapSize')?project.findBugsHeapSize:'1g'
            }

I get a dynamic property warning:

Deprecated dynamic property: "maxHeapSize" on "org.gradle.api.plugins.quality.FindBugsExtension_Decorated@51c434b8", value: "1g".
Deprecated dynamic property "maxHeapSize" created in multiple locations.

I checked the org.gradle.api.plugins.quality.FindBugsPlugin code for 1.11 and I didn’t see any reference to maxHeapSize (I didn’t investigate super classes), was this removed or changed?

Thanks

‘findbugs’ or ‘project.findbugs’ gives the FindBugs extension, which doesn’t have a ‘maxHeapSize’ property. ‘tasks.findbugs’ (or ‘tasks.withType(FindBugs)’) gives the FindBugs task(s).

Thank you. Moving it to:

project.plugins.withType(JavaBasePlugin) {
     project.findbugsMain{
          maxHeapSize = project.hasProperty('findBugsHeapSize')?project.findBugsHeapSize:'1g'
     }
     project.findbugsTest{
          maxHeapSize = project.hasProperty('findBugsHeapSize')?project.findBugsHeapSize:'1g'
     }
}

solved the problem.

‘tasks.withType(FindBugs)’ would typically be preferable.