File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/main/java/io/github/zorin95670/semver Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ public class GenerateChangelogMojo extends AbstractMojo {
26
26
private File basedir ;
27
27
28
28
public void execute () throws MojoExecutionException {
29
+ if (scope == null ) {
30
+ scope = "" ;
31
+ }
32
+ if (tagPrefix == null ) {
33
+ tagPrefix = "v" ;
34
+ }
29
35
getLog ().info ("Generate Changelog plugin started" );
30
36
GitService gitService = new GitService (basedir );
31
37
ChangelogService changelogService = new ChangelogService (basedir );
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class ReleaseMojo extends AbstractMojo {
19
19
@ Parameter (property = "tagPrefix" , defaultValue = "v" )
20
20
private String tagPrefix ;
21
21
22
- @ Parameter (property = "scope" )
22
+ @ Parameter (property = "scope" , defaultValue = "" )
23
23
private String scope ;
24
24
25
25
@ Parameter (defaultValue = "${project}" , readonly = true )
@@ -29,6 +29,12 @@ public class ReleaseMojo extends AbstractMojo {
29
29
private File basedir ;
30
30
31
31
public void execute () throws MojoExecutionException {
32
+ if (scope == null ) {
33
+ scope = "" ;
34
+ }
35
+ if (tagPrefix == null ) {
36
+ tagPrefix = "v" ;
37
+ }
32
38
MavenService mavenService = new MavenService (project );
33
39
GitService gitService = new GitService (basedir );
34
40
ChangelogService changelogService = new ChangelogService (basedir );
You can’t perform that action at this time.
0 commit comments