Gradle: could not set unknown property 'classDumpFile' in Intellij : <p>I have been searching through the Internet and asking on irc chats but none of them were or did not give any answer for trying to solve my problem.</p>

<p>I am trying to make my project to use <code>JaCoCo</code> on <code>Intellij</code> IDE, the tests are going to be done in a <code>Jenkins</code> server, i have set some settings in my gradle.build file for <code>JaCoCo</code> but build compilation fails saying <code>Could not set unknown property 'classDumpFile' for object of type org.gradle.testing.jacoco.plugins.JacocoTaskExtension.</code></p>

<p>The build file is like this:</p>

<pre><code>version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'jacoco'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenCentral()
}

jacoco{
    toolVersion = '0.7.6.201602180812'
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
    testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.5'
    compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
    compile group: 'org.json', name: 'json', version: '20180130'
}
test{
    jacoco {
        append = false
        destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
        classDumpFile = file("$buildDir/jacoco/classpathdumps")
    }
}
</code></pre>

<p>this is a gradle file generated by <code>IntelliJ</code> when creating the project and i have been adding some dependencies manually, now the developer that is managing the <code>jenkins</code> server told me to use these <code>JaCoCo</code> settings for <code>sonarQube</code> to work well, <code>IntelliJ</code> fails to make any compilation but when submitting the code to <code>Jenkins</code> it works fine.</p>

<p>I have been searching why does this happens and i have found out this might be due to gradle version and should use <code>classDumpDir</code> instead, this makes <code>IntelliJ</code> work but <code>Jenkins</code> server fails to build the project.</p>

<p>I believe this might be due to gradle version or something but i am still learning how to work with <code>Java</code> and <code>IntelliJ</code>, other developers are working with <code>Eclipse</code> and they do not get this error but i don't want to switch to <code>Eclipse</code> cause i am already too comfortable with <code>IntelliJ</code></p>

<p>In case is necessary here are the versions i am using:</p>

<ul>
<li>CLI Gradle version: 2.10</li>
<li>Java version: Ubuntu openjdk 1.8.0_151</li>
<li>IntelliJ version: 2017.3.4 Community Edition</li>
</ul>
