title: Gradle DSL method not found: 'destination()' after update to Gradle 5.2.1
body: <p>After updating to Gradle 5.2.1 my build is failing with this error: </p>
  
  <p><code>Gradle DSL method not found: 'destination()'</code></p>
  
  <p>I figured out that this error has something todo with my <code>analysis.gradle</code></p>
  
  <p>My <code>analysis.gradle</code> looks like that</p>
  
  <pre><code>apply plugin: 'checkstyle'
  apply plugin: 'pmd'
  apply plugin: 'jacoco'
  
  jacoco {
  toolVersion = "0.7.7.201606060606"
  }
  
  check.dependsOn 'checkstyle', 'pmd', 'lint'
  
  task checkstyle(type: Checkstyle) {
  println "----- checkstyle -----"
  configFile file(projectDir.getAbsolutePath() + '/analysis/checkstyle-ruleset.xml')
  
  source 'src'
  source '../domain/src'
  source '../util/src'
  include '**/*.java'
  exclude '**/gen/**'
  exclude '**/java-gen/**'
  exclude '**/androidTest/**'
  exclude '**/test/**'
  
  ignoreFailures = true
  
  classpath = files()
  
  reports {
      xml {
          destination buildDir.absolutePath + "/outputs/reports/checkstyle_report.xml"
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I think I have to replace the <code>destination</code> flag but I have no idea how to replace it. </p>