What is a replacement for a deprecated JaCoCo extension in Gradle? : <p>I'm using <code>Robolectric</code> and <code>JaCoCo</code> together. My code coverage reports do not work without the following lines of code in gradle script:</p>

<pre><code> testOptions {
    unitTests.all {
        jacoco {
            includeNoLocationClasses = true
        }
    }
 }
</code></pre>

<p>But in the recent version of Gradle the JaCoCo extension, that I use here, is marked as deprecated. I could not find any replacement for it. So, where should I apply the <code>includeNoLocationClasses = true</code> option?</p>
