Skip to content

Commit

Permalink
feat: skip parameter on semantic-version mojo (refs #53)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Dec 17, 2023
1 parent bf8a8f4 commit 015f8d8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
public class SemanticVersionMojo extends AbstractMojo {
@Component private MavenProject project;

@Parameter(property = "skip", required = false)
private Boolean skip;

@Parameter(
property = "updatePomWithCurrentSemanticVersionSuffixSnapshot",
required = false,
Expand All @@ -44,6 +47,11 @@ public class SemanticVersionMojo extends AbstractMojo {

@Override
public void execute() throws MojoExecutionException {
if (this.skip != null && this.skip == true) {
this.getLog().info("Skipping semantic version");
return;
}

try {
final GitChangelogApi gitChangelogApiBuilder = gitChangelogApiBuilder();
if (this.isSupplied(this.semanticMajorVersionPattern)) {
Expand Down

0 comments on commit 015f8d8

Please sign in to comment.