How to set jacoco code coverage levels to module in gradle : <p>I'm using gradle 4.3.1 with the jacoco plugin and I am able to ensure a certain level of code coverage in a a multi module project.  This works great when I set the <strong>element</strong> to <strong>CLASS</strong> or <strong>PACAKAGE</strong>, but I'm stumped on how to get it work for the module. </p>

<p>Looking <a href="http://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/core/analysis/ICoverageNode.ElementType.html" rel="noreferrer">here</a> I think what I want is <strong>BUNDLE</strong> or <strong>GROUP</strong>, but then jacoco does not break when I go under the coverage amount.</p>

<p>Here is an example of what I have that does work for package level coverage enforcement :</p>

<pre><code>jacocoTestCoverageVerification {
    violationRules {
        rule {
            // should be element = 'BUNDLE' or 'GROUP'? 
            element = 'PACKAGE'

            limit {
                minimum = 0.9
            }
            includes = ['com.mypackage.*']
        }
    }
}
</code></pre>

<p>When I change the element value to BUNDLE the build does not fail regardless of coverage. Again I'd like to be able to control the expectation at the module level.</p>

<p>Here is my gradle version information:</p>

<pre><code>------------------------------------------------------------
Gradle 4.3.1
------------------------------------------------------------

Build time:   2017-11-08 08:59:45 UTC
Revision:     e4f4804807ef7c2829da51877861ff06e07e006d

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_40 (Oracle Corporation 25.40-b25)
OS:           Windows 8.1 6.3 amd64
</code></pre>

<p>I'm guessing I'm missing something pretty simple, since I don't think I'm the first to try to do this.  Any help would be appreciated!</p>
