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