public class GroovyExtension extends FormatExtension
| Modifier and Type | Class and Description |
|---|---|
class |
GroovyExtension.GrEclipseConfig |
steps, target| Constructor and Description |
|---|
GroovyExtension(SpotlessExtension rootExtension) |
| Modifier and Type | Method and Description |
|---|---|
void |
excludeJava()
Excludes .java files, to focus on only .groovy files.
|
void |
excludeJava(boolean excludeJava)
Determines whether to exclude .java files, to focus on only .groovy files.
|
GroovyExtension.GrEclipseConfig |
greclipse() |
GroovyExtension.GrEclipseConfig |
greclipse(String version) |
void |
importOrder(List<String> importOrder) |
void |
importOrderFile(Object importOrderFile) |
void |
licenseHeader(String licenseHeader) |
void |
licenseHeaderFile(Object licenseHeaderFile) |
protected void |
setupTask(SpotlessTask task)
If the user hasn’t specified the files yet, we’ll assume he/she means all of the groovy files.
|
addStep, bumpThisNumberIfACustomStepChanges, clearSteps, custom, custom, customLazy, customLazyGroovy, encoding, endWithNewline, getEncoding, getExistingStep, getLineEndings, getProject, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, licenseHeader, licenseHeaderFile, paddedCell, paddedCell, parseTarget, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, target, trimTrailingWhitespacepublic GroovyExtension(SpotlessExtension rootExtension)
public void excludeJava()
Excludes .java files, to focus on only .groovy files.
public void excludeJava(boolean excludeJava)
Determines whether to exclude .java files, to focus on only .groovy files.
public void licenseHeader(String licenseHeader)
public void licenseHeaderFile(Object licenseHeaderFile)
public void importOrderFile(Object importOrderFile)
public GroovyExtension.GrEclipseConfig greclipse()
public GroovyExtension.GrEclipseConfig greclipse(String version)
protected void setupTask(SpotlessTask task)
If the user hasn’t specified the files yet, we’ll assume he/she means all of the groovy files.
setupTask in class FormatExtension