Skip to content

Commit 015f8d8

Browse files
committed
feat: skip parameter on semantic-version mojo (refs #53)
1 parent bf8a8f4 commit 015f8d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
public class SemanticVersionMojo extends AbstractMojo {
1919
@Component private MavenProject project;
2020

21+
@Parameter(property = "skip", required = false)
22+
private Boolean skip;
23+
2124
@Parameter(
2225
property = "updatePomWithCurrentSemanticVersionSuffixSnapshot",
2326
required = false,
@@ -44,6 +47,11 @@ public class SemanticVersionMojo extends AbstractMojo {
4447

4548
@Override
4649
public void execute() throws MojoExecutionException {
50+
if (this.skip != null && this.skip == true) {
51+
this.getLog().info("Skipping semantic version");
52+
return;
53+
}
54+
4755
try {
4856
final GitChangelogApi gitChangelogApiBuilder = gitChangelogApiBuilder();
4957
if (this.isSupplied(this.semanticMajorVersionPattern)) {

0 commit comments

Comments
 (0)