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

PMD 6.0.0: Could not find matching constructor CPDConfiguration #23

Closed nicolaichuk closed 6 years ago

nicolaichuk commented 6 years ago

@aaschmid, please update for pmd 6.0

Caused by: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: net.sourceforge.pmd.cpd.CPDConfiguration(java.lang.Integer, net.sourceforge.pmd.cpd.JavaLanguage, java.lang.String)
        at de.aaschmid.gradle.plugins.cpd.internal.CpdExecutor.run(CpdExecutor.groovy:51)

old constructor is deprecated: https://github.com/pmd/pmd/blob/pmd/5.8.x/pmd-core/src/main/java/net/sourceforge/pmd/cpd/CPDConfiguration.java#L139

and it is absent in new verison:

https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/cpd/CPDConfiguration.java#L136

nicolaichuk commented 6 years ago

@aaschmid, thanks.