title: JaCoCo Gradle - Exclude classes & override Includes
body: <p>I am attempting to refine my code coverage in my project, and want to exclude any <code>View</code> classes (as they are not tested/testable) but include any <code>ViewModel</code> classes... but I can't seem to get the wildcard filters to cooperate, it's all or nothing!</p>
  
  <pre><code>
  def excludedPatterns = [
          //... other stuff
  
          '**/*Fragment*.*',
          '**/*Activity*.*',
          '**/*Adapter*.*',
  
          '**/*View*.*', // &lt;-- this line is excluding classes ending w/ ViewModel
  
          '**/*ViewState*.*',
          '**/*ViewHolder*.*',
  ]
  
  task codeCoverageReport(type: JacocoReport, dependsOn: 'testDebugUnitTest') {
      group = "Reporting"
      description = "Generate Jacoco coverage reports after running tests."
  
      reports {
          html.enabled true
      }
  
      def debugTree = fileTree(
              dir: "$project.buildDir/tmp/kotlin-classes/debug",
              excludes: excludedPatterns
      )
      classDirectories.from = files([debugTree])
  
      def mainSrc = "$project.projectDir/src/main/java"
      sourceDirectories.from = files([mainSrc])
  
      executionData.from = fileTree(dir: project.buildDir, includes: [
              'jacoco/testDebugUnitTest.exec',
              'outputs/code-coverage/connected/*coverage.ec'
      ])
  }
  </code></pre>
  
  <p>I've tried several variations of <code>**/*View*.*'</code>, including <code>**/*View.*'</code> and others... 
  Is there something that I am overlooking?</p>