aaschmid / gradle-cpd-plugin

Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD).
Apache License 2.0
95 stars 12 forks source link

Use sourcesets by default #4

Closed ghost closed 9 years ago

ghost commented 9 years ago

Similar to, for example, the pmd plugin, I would expect the cpd plugin to use the defined sourcesets (main + test) by default. The plugin doesn't do anything if I use it without setting "source".

aaschmid commented 9 years ago

Hi @Nils-Ehmke, I first also thought about doing this and decided to not do this because I wanted to let the user decide which code it should be applied on. As I know think about it, this does not conflict at all, so I will implement your suggestion. Thanks for pointing this out. Cheers, Andreas