Gradle: could not set unknown property 'classDumpFile' in Intellij
After long hours of searching, testing and failing i have finally found the way to fix this issue.
I have found out in the directory gradle/wrapper
there is a file with the gradle properties, in this file there was a variable that defines which gradle to use and on my file it was set to use gradle 4.5:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip
i've asked the DevOps engineer which gradle version jenkins is using and he said it should be 3.0 so i changed the distributionUrl
value to use 3.0 version and it works
Looks like they changed the Variable, from classDumpFile to classDumpDir.
test {
jacoco {
append = false
classDumpDir = file("$buildDir/jacoco/classpathdumps")
}
}
This worked for me