Class Groovy
java.lang.Object
com.diffplug.spotless.maven.FormatterFactory
com.diffplug.spotless.maven.groovy.Groovy
A
FormatterFactory implementation that corresponds to <groovy>...</groovy> configuration element.
It defines a formatter for groovy source files that can execute both language agnostic (e.g. LicenseHeader)
and groovy-specific (e.g. GrEclipse) steps.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGreclipse(GrEclipse greclipse) voidaddImportOrder(ImportOrder importOrder) voidaddRemoveSemicolons(RemoveSemicolons removeSemicolons) defaultIncludes(org.apache.maven.project.MavenProject project) Methods inherited from class com.diffplug.spotless.maven.FormatterFactory
addEclipseWtp, addEndWithNewline, addIdea, addIndent, addJsr223, addLicenseHeader, addNativeCmd, addPrettier, addReplace, addReplaceRegex, addStepFactory, addToggleOffOn, addTrimTrailingWhitespace, excludes, includes, init, newFormatter
-
Constructor Details
-
Groovy
public Groovy()
-
-
Method Details
-
defaultIncludes
- Specified by:
defaultIncludesin classFormatterFactory
-
licenseHeaderDelimiter
- Specified by:
licenseHeaderDelimiterin classFormatterFactory
-
addGreclipse
-
addImportOrder
-
addRemoveSemicolons
-