Package com.diffplug.spotless.maven
Class AbstractSpotlessMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.diffplug.spotless.maven.AbstractSpotlessMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
SpotlessApplyMojo,SpotlessCheckMojo
public abstract class AbstractSpotlessMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Fileprotected org.sonatype.plexus.build.incremental.BuildContextprotected booleanIf set totruewill also run on incremental builds (i.e.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
buildContext
@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext -
baseDir
-
m2eEnableForIncrementalBuild
@Parameter(defaultValue="false") protected boolean m2eEnableForIncrementalBuildIf set totruewill also run on incremental builds (i.e. within Eclipse with m2e). Otherwise this goal is skipped in incremental builds and only runs on full builds.
-
-
Constructor Details
-
AbstractSpotlessMojo
protected AbstractSpotlessMojo()
-
-
Method Details
-
process
protected abstract void process(String name, Iterable<File> files, Formatter formatter, UpToDateChecker upToDateChecker) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-