public class SpotlessTaskBase extends DefaultTask
Task.Namer| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding |
protected FormatExceptionPolicy |
exceptionPolicy |
protected LineEnding.Policy |
lineEndingsPolicy |
protected File |
outputDirectory |
protected List<FormatterStep> |
steps |
protected FileCollection |
target |
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
SpotlessTaskBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addStep(FormatterStep step) |
SpotlessApply |
getApplyTask()
Deprecated.
internal use only, allows coordination between check and apply when they are in the same build
|
String |
getEncoding() |
FormatExceptionPolicy |
getExceptionPolicy() |
LineEnding.Policy |
getLineEndingsPolicy() |
File |
getOutputDirectory() |
org.eclipse.jgit.lib.ObjectId |
getRatchetSha() |
List<FormatterStep> |
getSteps() |
FileCollection |
getTarget() |
void |
setEncoding(String encoding) |
void |
setExceptionPolicy(FormatExceptionPolicy exceptionPolicy) |
void |
setLineEndingsPolicy(LineEnding.Policy lineEndingsPolicy) |
void |
setSteps(List<FormatterStep> steps) |
void |
setTarget(Iterable<File> target) |
void |
setupRatchet(com.diffplug.gradle.spotless.GitRatchet gitRatchet,
String ratchetFrom) |
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, getRequiredServices, getServices, getSharedResources, 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, usesServiceprotected String encoding
protected LineEnding.Policy lineEndingsPolicy
protected FormatExceptionPolicy exceptionPolicy
protected FileCollection target
protected File outputDirectory
protected List<FormatterStep> steps
@Internal @Deprecated public SpotlessApply getApplyTask()
public void setEncoding(String encoding)
@Input public LineEnding.Policy getLineEndingsPolicy()
public void setLineEndingsPolicy(LineEnding.Policy lineEndingsPolicy)
public void setupRatchet(com.diffplug.gradle.spotless.GitRatchet gitRatchet,
String ratchetFrom)
@Input public org.eclipse.jgit.lib.ObjectId getRatchetSha()
public void setExceptionPolicy(FormatExceptionPolicy exceptionPolicy)
@Input public FormatExceptionPolicy getExceptionPolicy()
@PathSensitive(value=RELATIVE) @InputFiles public FileCollection getTarget()
@OutputDirectory public File getOutputDirectory()
@Input public List<FormatterStep> getSteps()
public void setSteps(List<FormatterStep> steps)
public boolean addStep(FormatterStep step)