Multiproject checkstyles not working

Thanks again for the response. At this stage I would rather include too many files and trim it down once I know it works.

I don’t know that I have a good reason to not use checkstyleMain. I am new to Gradle and I was following this thread to get findbugs working Creating common task for all subprojects and I was hoping that checkstyle would be similar in implementation

subprojects {
    apply plugin: 'findbugs'

    task findbugs(type: FindBugs) {
        ignoreFailures = true
        effort = "max"
        reportLevel = "low"
        classes = files("${project.buildDir}/classes")
        source 'src'
        include "*/.java"
        exclude "/test/"
        reports {
            xml.enabled = false
            html.enabled = true
            html {
                destination file("$project.buildDir/reports/findbugs/${project.name}.html")
            }
        }
        classpath = files()
    }
}