Class 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 Detail

      • buildContext

        @Component
        protected org.sonatype.plexus.build.incremental.BuildContext buildContext
    • Constructor Detail

      • AbstractSpotlessMojo

        protected AbstractSpotlessMojo()
    • Method Detail

      • process

        protected abstract void process​(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