Package com.diffplug.gradle.spotless
Class SpotlessTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- com.diffplug.gradle.spotless.SpotlessTask
-
- All Implemented Interfaces:
Comparable<Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,ExtensionAware
,Task
,org.gradle.util.Configurable<Task>
- Direct Known Subclasses:
SpotlessTaskImpl
public class SpotlessTask extends DefaultTask
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
-
-
Field Summary
Fields Modifier and Type Field Description protected String
encoding
protected FormatExceptionPolicy
exceptionPolicy
protected LineEnding.Policy
lineEndingsPolicy
protected File
outputDirectory
protected List<FormatterStep>
steps
protected FileCollection
target
-
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
-
Constructor Summary
Constructors Constructor Description SpotlessTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(GitRatchetGradle gitRatchet, String ratchetFrom)
-
Methods inherited from class org.gradle.api.DefaultTask
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, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, replaceLogger, setImpliesSubProjects
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gradle.api.Task
getConvention
-
-
-
-
Field Detail
-
encoding
protected String encoding
-
lineEndingsPolicy
protected LineEnding.Policy lineEndingsPolicy
-
exceptionPolicy
protected FormatExceptionPolicy exceptionPolicy
-
target
protected FileCollection target
-
outputDirectory
protected File outputDirectory
-
steps
protected List<FormatterStep> steps
-
-
Method Detail
-
setEncoding
public void setEncoding(String encoding)
-
getLineEndingsPolicy
@Input public LineEnding.Policy getLineEndingsPolicy()
-
setLineEndingsPolicy
public void setLineEndingsPolicy(LineEnding.Policy lineEndingsPolicy)
-
setupRatchet
public void setupRatchet(GitRatchetGradle gitRatchet, String ratchetFrom)
-
getRatchetSha
@Input public org.eclipse.jgit.lib.ObjectId getRatchetSha()
-
setExceptionPolicy
public void setExceptionPolicy(FormatExceptionPolicy exceptionPolicy)
-
getExceptionPolicy
@Input public FormatExceptionPolicy getExceptionPolicy()
-
getTarget
@PathSensitive(RELATIVE) @Incremental @InputFiles public FileCollection getTarget()
-
getOutputDirectory
@OutputDirectory public File getOutputDirectory()
-
getSteps
@Input public List<FormatterStep> getSteps()
-
setSteps
public void setSteps(List<FormatterStep> steps)
-
addStep
public boolean addStep(FormatterStep step)
-
-