PMD Gradle Plugin: Remove pmdTest upon gradle check

断了今生、忘了曾经 提交于 2020-11-28 08:00:29

问题


I am using the PMD Gradle plugin in a build.gradle file. Is there a way to disable the pmdTest task so that it is not run I execute gradle check ?

Edit: In the question I say 'remove'. I really mean 'disable'.


回答1:


pmd {
    sourceSets = [sourceSets.main]
}

See PmdExtension in the Gradle Build Language Reference.



来源:https://stackoverflow.com/questions/17237115/pmd-gradle-plugin-remove-pmdtest-upon-gradle-check

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!