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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章