title: gradle project + cobertura - why can't I generate reports for multiple subprojects?
body: <p>On the root level project, I have a <code>build.gradle</code> with the following:</p>
  
  <pre><code>plugins {
      id "org.sonarqube" version "2.2.1"
      id 'net.saliman.cobertura' version '2.4.0'
  }
  
  apply plugin: 'groovy'
  apply plugin: 'cobertura'
  
  cobertura {
      coverageFormats = ['html', 'xml']
      coverageReportDir = new File("$projectDir/reports/cobertura")
      rootProject.subprojects.each {
          coverageReportDir = new File("$it.name/reports/cobertura")
      }
  }
  </code></pre>
  
  <p>But when I run <code>./gradlew cobertura</code> it will only generate the reports/cobertura directory on the root project.</p>
  
  <p>What's going on here?</p>