Class JzapPlugin

java.lang.Object
io.github.huyz0.jzap.gradle.JzapPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class JzapPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Registers the mutationTest and mutationTestDiff tasks.

The plugin resolves classpaths and toolchains and nothing else. Every decision about what a mutant is, which tests to run, and how to report belongs to the engine, which is why this file is short and is expected to stay short.

  • Field Details

    • EXTENSION_NAME

      public static final String EXTENSION_NAME
      See Also:
    • ANALYSE_TASK

      public static final String ANALYSE_TASK
      See Also:
    • DIFF_TASK

      public static final String DIFF_TASK
      See Also:
    • AGGREGATE_TASK

      public static final String AGGREGATE_TASK
      See Also:
    • FROM_ENV

      public static final String FROM_ENV
      Environment variables supplying a diff range.

      For CI, which knows the base branch and cannot edit the build script to say so. Every other option is settable in the jzap block because it is a property of the project; the range is a property of the invocation, and is the one thing a pull-request build has to decide per run.

      See Also:
    • TO_ENV

      public static final String TO_ENV
      See Also:
  • Constructor Details

    • JzapPlugin

      public JzapPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>