Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PMD Gradle Plugin: Remove pmdTest upon gradle check

Tags:

gradle

pmd

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'.

like image 235
Eric Francis Avatar asked Jun 21 '13 13:06

Eric Francis


1 Answers

pmd {
    sourceSets = [sourceSets.main]
}

See PmdExtension in the Gradle Build Language Reference.

like image 77
Peter Niederwieser Avatar answered Nov 15 '22 05:11

Peter Niederwieser