Class JacocoPlugin

java.lang.Object
org.gradle.testing.jacoco.plugins.JacocoPlugin
All Implemented Interfaces:
Plugin<Project>

public abstract class JacocoPlugin extends Object implements Plugin<Project>
Plugin that provides support for generating Jacoco coverage data.
Since:
1.6
See Also:
  • Field Details

    • DEFAULT_JACOCO_VERSION

      public static final String DEFAULT_JACOCO_VERSION
      The jacoco version used if none is explicitly specified.
      Since:
      3.4
      See Also:
    • AGENT_CONFIGURATION_NAME

      public static final String AGENT_CONFIGURATION_NAME
      The agent configuration name.
      Since:
      2.14
      See Also:
    • ANT_CONFIGURATION_NAME

      public static final String ANT_CONFIGURATION_NAME
      The ant configuration name.
      Since:
      2.14
      See Also:
    • PLUGIN_EXTENSION_NAME

      public static final String PLUGIN_EXTENSION_NAME
      The plugin extension name.
      Since:
      2.14
      See Also:
  • Constructor Details

    • JacocoPlugin

      @Inject public JacocoPlugin(org.gradle.internal.reflect.Instantiator instantiator)
  • Method Details

    • apply

      public void apply(Project project)
      Description copied from interface: Plugin
      Apply this plugin to the given target object.
      Specified by:
      apply in interface Plugin<Project>
      Parameters:
      project - The target object