Merge branch 'hotfix/2.1.2' into develop
* hotfix/2.1.2: CHANGELOG AbstractCheckMojo: use version of plugin not the using project
This commit is contained in:
commit
b8133989e5
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
2.1.2
|
||||||
|
-----
|
||||||
|
|
||||||
|
* Use the plugin version to find plugin's own pom
|
||||||
|
|
||||||
2.1.1
|
2.1.1
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@ abstract class AbstractCheckMojo extends AbstractMojo {
|
||||||
|
|
||||||
private static final String CONFIG_LOCATION = "configLocation";
|
private static final String CONFIG_LOCATION = "configLocation";
|
||||||
|
|
||||||
@Setter
|
|
||||||
@Parameter(defaultValue = "${project.version}")
|
|
||||||
private String rulesetVersion;
|
private String rulesetVersion;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
|
@ -98,6 +96,9 @@ abstract class AbstractCheckMojo extends AbstractMojo {
|
||||||
* @throws MojoFailureException on execution failure
|
* @throws MojoFailureException on execution failure
|
||||||
*/
|
*/
|
||||||
final void performCheck(final String level) throws MojoExecutionException, MojoFailureException {
|
final void performCheck(final String level) throws MojoExecutionException, MojoFailureException {
|
||||||
|
rulesetVersion = mavenProject.getPlugin(KEMITIX_GROUPID + ":" + KEMITIX_ARTIFACTID + "-maven-plugin")
|
||||||
|
.getVersion();
|
||||||
|
debug("rulesetVersion: %s", rulesetVersion);
|
||||||
val properties = getProperties();
|
val properties = getProperties();
|
||||||
debug("properties: %s", properties);
|
debug("properties: %s", properties);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue