Gradle升级到5.2.1之后报错:Gradle DSL method not found: 'destination()'

项目中用到了sonarqube检查,单独放在了一个gradle文件中,里边用到了

xml {
    destination "$project.buildDir/reports/pmd/pmd.xml"
}
html {
    destination "$project.buildDir/reports/pmd/pmd.html"
}

在Gradle 5.x后,必须使用setDestination(File file)这种来设置, (具体参考 setDestination(File file) )。

领参考:https://stackoverflow.com/questions/54671249/gradle-dsl-method-not-found-destination-after-update-to-gradle-5-2-1

你可能感兴趣的:(开发记录)