use of org.gradle.api.tasks.SourceSet in project gradle by gradle.
the class CodeNarcPlugin method configureForSourceSet.
@Override
protected void configureForSourceSet(final SourceSet sourceSet, CodeNarc task) {
task.setDescription("Run CodeNarc analysis for " + sourceSet.getName() + " classes");
SourceDirectorySet groovySourceSet = sourceSet.getExtensions().getByType(GroovySourceDirectorySet.class);
task.setSource(groovySourceSet.matching(filter -> filter.include("**/*.groovy")));
}
Aggregations