public class GroovyExtension extends FormatExtension implements HasBuiltinDelimiterForLicense
Modifier and Type | Class and Description |
---|---|
static class |
GroovyExtension.GrEclipseConfig |
FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfig
steps, target, targetExclude
Constructor and Description |
---|
GroovyExtension(SpotlessExtension spotless) |
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(String... importOrder) |
void |
importOrderFile(Object importOrderFile) |
FormatExtension.LicenseHeaderConfig |
licenseHeader(String licenseHeader) |
FormatExtension.LicenseHeaderConfig |
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, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, licenseHeader, licenseHeaderFile, noDefaultTargetException, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, target, targetExclude, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
@Inject public GroovyExtension(SpotlessExtension spotless)
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 FormatExtension.LicenseHeaderConfig licenseHeader(String licenseHeader)
licenseHeader
in interface HasBuiltinDelimiterForLicense
licenseHeader
- Content that should be at the top of every file.public FormatExtension.LicenseHeaderConfig licenseHeaderFile(Object licenseHeaderFile)
licenseHeaderFile
in interface HasBuiltinDelimiterForLicense
licenseHeaderFile
- Content that should be at the top of every file.public void importOrder(String... importOrder)
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