Execution failed for task ':cpdCheck'. on gradle 5.6

Task :cpdCheck FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:cpdCheck’.
    A failure occurred while executing CPD worker
    net/sourceforge/pmd/cpd/CPDConfiguration

build.gradle

plugins {
    id 'java'
    id 'pmd'
}

cpdCheck {
    ignoreFailures = true
    reports {
        text.enabled = true
        xml.enabled = true
    }
    source = sourceSets.main.allJava
}

command
gradle check

on gradle 5.5 works fine.
Version 5.6 and above will always result in an error.

1 Like

I tried 5.6.2, 5.6.1, 5.6 and they all failed

5.5.1 works

Looks like it’s being tracked here: https://github.com/aaschmid/gradle-cpd-plugin/issues/45