public class SpotlessTask 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 |
|---|
SpotlessTask() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addStep(FormatterStep step) |
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.GitRatchetGradle gitRatchet,
String ratchetFrom) |
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, replaceLogger, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConventionprotected String encoding
protected LineEnding.Policy lineEndingsPolicy
protected FormatExceptionPolicy exceptionPolicy
protected FileCollection target
protected File outputDirectory
protected List<FormatterStep> steps
public void setEncoding(String encoding)
@Input public LineEnding.Policy getLineEndingsPolicy()
public void setLineEndingsPolicy(LineEnding.Policy lineEndingsPolicy)
public void setupRatchet(com.diffplug.gradle.spotless.GitRatchetGradle gitRatchet,
String ratchetFrom)
@Input public org.eclipse.jgit.lib.ObjectId getRatchetSha()
public void setExceptionPolicy(FormatExceptionPolicy exceptionPolicy)
@Input public FormatExceptionPolicy getExceptionPolicy()
@PathSensitive(value=RELATIVE) @Incremental @InputFiles public FileCollection getTarget()
@OutputDirectory public File getOutputDirectory()
@Input public List<FormatterStep> getSteps()
public void setSteps(List<FormatterStep> steps)
public boolean addStep(FormatterStep step)