Any gradle command to start the detection ?
gauravarora90 opened this issue · 4 comments
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 ?
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
Where to define this dependency ? in my gradle file itself, or any config file in the root level of my project ?
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
As there is no more response since a long time the issue might be fixed :-)
Otherwise don't hesitate to reopen it...