plugin: AbstractCheckMojo: minor tidy-up
This commit is contained in:
parent
a67a64e851
commit
84269c1dd6
1 changed files with 9 additions and 4 deletions
|
@ -48,6 +48,8 @@ abstract class AbstractCheckMojo extends AbstractMojo {
|
||||||
|
|
||||||
private static final String KEMITIX_ARTIFACTID = "kemitix-checkstyle-ruleset";
|
private static final String KEMITIX_ARTIFACTID = "kemitix-checkstyle-ruleset";
|
||||||
|
|
||||||
|
private final CheckstyleExecutor checkstyleExecutor;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
@Parameter(defaultValue = "${project}", readonly = true)
|
@Parameter(defaultValue = "${project}", readonly = true)
|
||||||
private MavenProject mavenProject;
|
private MavenProject mavenProject;
|
||||||
|
@ -58,14 +60,17 @@ abstract class AbstractCheckMojo extends AbstractMojo {
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
@Parameter(defaultValue = "${localRepository}", readonly = true, required = true)
|
@Parameter(defaultValue = "${localRepository}", readonly = true, required = true)
|
||||||
private ArtifactRepository artifactRepository = null;
|
private ArtifactRepository artifactRepository;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
@Component
|
@Component
|
||||||
private BuildPluginManager pluginManager = null;
|
private BuildPluginManager pluginManager;
|
||||||
|
|
||||||
private final CheckstyleExecutor checkstyleExecutor;
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a check mojo.
|
||||||
|
*
|
||||||
|
* @param checkstyleExecutor the executor to invoke the checkstyle plugin
|
||||||
|
*/
|
||||||
AbstractCheckMojo(final CheckstyleExecutor checkstyleExecutor) {
|
AbstractCheckMojo(final CheckstyleExecutor checkstyleExecutor) {
|
||||||
this.checkstyleExecutor = checkstyleExecutor;
|
this.checkstyleExecutor = checkstyleExecutor;
|
||||||
checkstyleExecutor.setLog(getLog());
|
checkstyleExecutor.setLog(getLog());
|
||||||
|
|
Loading…
Reference in a new issue