@Incubating public class CompareGradleBuilds extends DefaultTask implements VerificationTask
Task.Namer
Modifier and Type | Field and Description |
---|---|
static List<String> |
DEFAULT_TASKS |
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
CompareGradleBuilds(org.gradle.api.internal.file.FileResolver fileResolver,
org.gradle.logging.ProgressLoggerFactory progressLoggerFactory,
org.gradle.internal.reflect.Instantiator instantiator) |
Modifier and Type | Method and Description |
---|---|
boolean |
getIgnoreFailures()
Whether a comparison between non identical builds will fail the task execution.
|
File |
getReportDir()
The directory that will contain the HTML comparison report and any other report files.
|
GradleBuildInvocationSpec |
getSourceBuild()
The specification of how to invoke the source build.
|
GradleBuildInvocationSpec |
getTargetBuild()
The specification of how to invoke the target build.
|
void |
setIgnoreFailures(boolean ignoreFailures)
Sets whether a comparison between non identical builds will fail the task execution.
|
void |
setReportDir(Object reportDir)
Sets the directory that will contain the HTML comparison report and any other report files.
|
void |
sourceBuild(Action<GradleBuildInvocationSpec> config)
Configures the source build.
|
void |
targetBuild(Action<GradleBuildInvocationSpec> config)
Configures the target build.
|
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getStateInternal, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
@Inject public CompareGradleBuilds(org.gradle.api.internal.file.FileResolver fileResolver, org.gradle.logging.ProgressLoggerFactory progressLoggerFactory, org.gradle.internal.reflect.Instantiator instantiator)
public GradleBuildInvocationSpec getSourceBuild()
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.public void sourceBuild(Action<GradleBuildInvocationSpec> config)
sourceBuild { gradleVersion = "1.1" }
config
- The configuration action.public GradleBuildInvocationSpec getTargetBuild()
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.public void targetBuild(Action<GradleBuildInvocationSpec> config)
targetBuild { gradleVersion = "1.1" }
config
- The configuration action.public boolean getIgnoreFailures()
getIgnoreFailures
in interface VerificationTask
public void setIgnoreFailures(boolean ignoreFailures)
setIgnoreFailures
in interface VerificationTask
ignoreFailures
- false to fail the task on non identical builds, true to not fail the task. The default is false.@OutputDirectory public File getReportDir()
public void setReportDir(Object reportDir)
project.file()
.reportDir
- The directory that will contain the HTML comparison report and any other report files.