GRADLE-571 - Extracted SourceTask out of Compile - Changed Checkstyle, CodeNarc, Javadoc, Scaladoc and Groovydoc to extend SourceTask - Removed the various properties from Javadoc and Groovydoc which specify what to document, and use the properties from SourceTask - All tasks now honour the include/exclude patterns specified on the SourceSets.
GRADLE-571 - Replaced srcDirs property on Compile, GroovyCompile, ScalaCompile with src property, which can accept any of the types handled by Project.files() - Wire up the include/exclude patterns on SourceSet so they are honoured by the various compile tasks. Added int test for this. - Use a transitive configuration when resolving the groovy classpath to pass to the Groovy tasks, to handle case where dependency is declared on 'groovy' is used instead of 'groovy-all'. - Added SourceSet.allSource property.