项目中用到了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) )。