aaschmid / gradle-cpd-plugin

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

Any gradle command to start the detection ? #26

Closed gauravarora90 closed 5 years ago

gauravarora90 commented 6 years ago

I have configured it. But I am not sure, how it will start detecting the duplicate code. Any gradle command to start the detection process ?

aaschmid commented 6 years ago

As I assume on your question that you haven't specified any dependencies like analyze.dependsOn(cpdCheck) you can directly call

gradle cpdCheck

to start the Copy-Paste-Detection.

Does that help?

Cheers, Andreas

gauravarora90 commented 6 years ago

Where to define this dependency ? in my gradle file itself, or any config file in the root level of my project ?

aaschmid commented 6 years ago

Yes, you can put it into the build.gradle file of your project, where you also added the cpd plugin as described in https://github.com/aaschmid/gradle-cpd-plugin/blob/master/README.md

aaschmid commented 5 years ago

As there is no more response since a long time the issue might be fixed :-) Otherwise don't hesitate to reopen it...