Package com.arc_e_tect.gradle.jacoco
Class JacocoExclusionReportPlugin
java.lang.Object
com.arc_e_tect.gradle.jacoco.JacocoExclusionReportPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public class JacocoExclusionReportPlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
Gradle plugin that registers the
jacocoExclusionReport task and
wires it into the standard verification lifecycle.
Usage
// settings.gradle (composite build)
includeBuild '../sedr_utils/jacoco-exclusion-report'
// build.gradle
plugins {
id 'com.arc-e-tect.jacoco-exclusion-report'
}
Lifecycle
- The task is added as a dependency of
check. - If
jacocoTestCoverageVerificationis present the report runs before it, so coverage numbers and the exclusion audit are always produced together.
Defaults
- Annotation:
ExcludeFromJacocoGeneratedCodeCoverage - Sources:
sourceSets.main.java.srcDirs(when the Java plugin is applied) - Output:
build/reports/jacoco-exclusions/
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TASK_NAME
Name of the Gradle task registered by this plugin.- See Also:
-
-
Constructor Details
-
JacocoExclusionReportPlugin
public JacocoExclusionReportPlugin()Creates a new plugin instance. Instantiated by Gradle infrastructure.
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-