Class CompareGradleBuilds

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.plugins.buildcomparison.gradle.CompareGradleBuilds
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, VerificationTask, org.gradle.util.Configurable<Task>

@Deprecated public class CompareGradleBuilds extends DefaultTask implements VerificationTask
Deprecated.
Executes two Gradle builds (that can be the same build) with specified versions and compares the outcomes. Please see the “Comparing Builds” chapter of the Gradle User Manual for more information.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Task

    Task.Namer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.gradle.internal.file.PathToFileResolver
    Deprecated.
     
    boolean
    Deprecated.
    Whether a comparison between non identical builds will fail the task execution.
    protected ObjectFactory
    Deprecated.
    Injects and returns an instance of ObjectFactory.
    protected org.gradle.internal.logging.progress.ProgressLoggerFactory
    Deprecated.
     
    Deprecated.
    The directory that will contain the HTML comparison report and any other report files.
    Deprecated.
    The specification of how to invoke the source build.
    Deprecated.
    The specification of how to invoke the target build.
    void
    setIgnoreFailures(boolean ignoreFailures)
    Deprecated.
    Sets whether a comparison between non identical builds will fail the task execution.
    void
    setReportDir(File reportDir)
    Deprecated.
    Sets the directory that will contain the HTML comparison report and any other report files.
    void
    setReportDir(Object reportDir)
    Deprecated.
    Sets the directory that will contain the HTML comparison report and any other report files.
    void
    Deprecated.
    Configures the source build.
    void
    Deprecated.
    Configures the target build.

    Methods inherited from class org.gradle.api.internal.AbstractTask

    appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT_TASKS

      public static final List<String> DEFAULT_TASKS
      Deprecated.
  • Constructor Details

    • CompareGradleBuilds

      public CompareGradleBuilds()
      Deprecated.
  • Method Details

    • getFileResolver

      @Inject protected org.gradle.internal.file.PathToFileResolver getFileResolver()
      Deprecated.
    • getProgressLoggerFactory

      @Inject protected org.gradle.internal.logging.progress.ProgressLoggerFactory getProgressLoggerFactory()
      Deprecated.
    • getObjectFactory

      @Inject protected ObjectFactory getObjectFactory()
      Deprecated.
      Injects and returns an instance of ObjectFactory.
      Since:
      4.2
    • getSourceBuild

      public GradleBuildInvocationSpec getSourceBuild()
      Deprecated.
      The specification of how to invoke the source build. Defaults to project.rootDir with the current Gradle version and the tasks “clean assemble”. The projectDir must be the project directory of the root project if this is a multi project build.
      Returns:
      The specification of how to invoke the source build.
    • sourceBuild

      public void sourceBuild(Action<GradleBuildInvocationSpec> config)
      Deprecated.
      Configures the source build. A Groovy closure can be used as the action.
      sourceBuild {
        gradleVersion = "1.1"
      }
      
      Parameters:
      config - The configuration action.
    • getTargetBuild

      public GradleBuildInvocationSpec getTargetBuild()
      Deprecated.
      The specification of how to invoke the target build. Defaults to project.rootDir with the current Gradle version and the tasks “clean assemble”. The projectDir must be the project directory of the root project if this is a multi project build.
      Returns:
      The specification of how to invoke the target build.
    • targetBuild

      public void targetBuild(Action<GradleBuildInvocationSpec> config)
      Deprecated.
      Configures the target build. A Groovy closure can be used as the action.
      targetBuild {
        gradleVersion = "1.1"
      }
      
      Parameters:
      config - The configuration action.
    • getIgnoreFailures

      public boolean getIgnoreFailures()
      Deprecated.
      Whether a comparison between non identical builds will fail the task execution.
      Specified by:
      getIgnoreFailures in interface VerificationTask
      Returns:
      True if a comparison between non identical builds will fail the task execution, otherwise false.
    • setIgnoreFailures

      public void setIgnoreFailures(boolean ignoreFailures)
      Deprecated.
      Sets whether a comparison between non identical builds will fail the task execution.
      Specified by:
      setIgnoreFailures in interface VerificationTask
      Parameters:
      ignoreFailures - false to fail the task on non identical builds, true to not fail the task. The default is false.
    • getReportDir

      @OutputDirectory public File getReportDir()
      Deprecated.
      The directory that will contain the HTML comparison report and any other report files.
      Returns:
      The directory that will contain the HTML comparison report and any other report files.
    • setReportDir

      public void setReportDir(File reportDir)
      Deprecated.
      Sets the directory that will contain the HTML comparison report and any other report files.
      Parameters:
      reportDir - The directory that will contain the HTML comparison report and any other report files.
      Since:
      4.0
    • setReportDir

      public void setReportDir(Object reportDir)
      Deprecated.
      Sets the directory that will contain the HTML comparison report and any other report files. The value will be evaluated by project.file().
      Parameters:
      reportDir - The directory that will contain the HTML comparison report and any other report files.