PMD Gradle Plugin: Remove pmdTest upon gradle check
问题 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