Class AbstractMavenGitCodeFormatMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.cosium.code.format.AbstractMavenGitCodeFormatMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractModuleMavenGitCodeFormatMojo, InstallHooksMojo

public abstract class AbstractMavenGitCodeFormatMojo extends org.apache.maven.plugin.AbstractMojo
Author:
Réda Housni Alaoui
  • Field Details

  • Constructor Details

    • AbstractMavenGitCodeFormatMojo

      public AbstractMavenGitCodeFormatMojo()
  • Method Details

    • gitRepository

      protected final org.eclipse.jgit.lib.Repository gitRepository()
    • pomFile

      protected final Path pomFile()
    • sourceDirs

      protected final List<Path> sourceDirs()
    • targetDir

      protected final Path targetDir()
    • artifactId

      protected final String artifactId()
    • collectCodeFormatters

      protected final CodeFormatters collectCodeFormatters()
    • isExecutionRoot

      protected final boolean isExecutionRoot()
    • getOrCreateHooksDirectory

      protected final Path getOrCreateHooksDirectory()
      Get or creates the git hooks directory
      Returns:
      The git hooks directory
    • gitBaseDir

      protected final Path gitBaseDir()