@@ -116,7 +116,7 @@ public class GitChangelogMojo extends AbstractMojo {
116
116
private String jiraUsername ;
117
117
118
118
@ Parameter (property = "ignoreCommitsWithoutIssue" , required = false )
119
- private boolean ignoreCommitsWithoutIssue ;
119
+ private Boolean ignoreCommitsWithoutIssue ;
120
120
121
121
@ Parameter (property = "customIssues" , required = false )
122
122
private List <CustomIssue > customIssues ;
@@ -175,8 +175,10 @@ public void execute() throws MojoExecutionException {
175
175
if (isSupplied (noIssueName )) {
176
176
builder .withNoIssueName (noIssueName );
177
177
}
178
- builder .withIgnoreCommitsWithoutIssue (ignoreCommitsWithoutIssue );
179
- for (CustomIssue customIssue : customIssues ) {
178
+ if (ignoreCommitsWithoutIssue != null ) {
179
+ builder .withIgnoreCommitsWithoutIssue (ignoreCommitsWithoutIssue );
180
+ }
181
+ for (final CustomIssue customIssue : customIssues ) {
180
182
builder .withCustomIssue (
181
183
customIssue .getName (),
182
184
customIssue .getPattern (),
@@ -239,7 +241,7 @@ public void execute() throws MojoExecutionException {
239
241
getLog ().info ("# Created: " + mediaWikiUrl + "/index.php/" + mediaWikiTitle );
240
242
getLog ().info ("#" );
241
243
}
242
- } catch (Exception e ) {
244
+ } catch (final Exception e ) {
243
245
getLog ().error ("GitChangelog" , e );
244
246
}
245
247
}
0 commit comments