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 jacocoTestCoverageVerification is 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 Details

  • 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:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>