Skip to content

Commit 3e7bd22

Browse files
committed
fix: Cannot query the value of this property because it has no value available
1 parent 94693d8 commit 3e7bd22

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
#Sat Nov 09 11:33:13 CET 2024
2+
#Sat Nov 09 14:18:19 CET 2024
33
description=Automate changelog and versioning with conventional commits and Git.
44
group=se.bjurr.gitchangelog
55
implementationClass=se.bjurr.gitchangelog.plugin.gradle.GitChangelogGradlePlugin
@@ -8,4 +8,4 @@ sourceCompatibility=17
88
stripGradlePluginSuffix=false
99
tags=git,changelog,releasenotes,patchnotes,conventional commits,semantic version,semantic release
1010
targetCompatibility=17
11-
version=3.0.0
11+
version=3.0.1

src/main/java/se/bjurr/gitchangelog/plugin/gradle/GitChangelogTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public class GitChangelogTask extends DefaultTask {
5252
public Property<String> dateFormat = this.getProject().getObjects().property(String.class);
5353
public Property<String> timeZone = this.getProject().getObjects().property(String.class);
5454
public Property<Boolean> removeIssueFromMessage =
55-
this.getProject().getObjects().property(Boolean.class);
55+
this.getProject().getObjects().property(Boolean.class).convention(false);
5656
public Property<String> ignoreCommitsIfMessageMatches =
5757
this.getProject().getObjects().property(String.class);
5858
public Property<String> untaggedName = this.getProject().getObjects().property(String.class);
5959
public Property<String> noIssueName = this.getProject().getObjects().property(String.class);
6060
public Property<Boolean> ignoreCommitsWithoutIssue =
61-
this.getProject().getObjects().property(Boolean.class);
61+
this.getProject().getObjects().property(Boolean.class).convention(false);
6262
public Property<String> ignoreTagsIfNameMatches =
6363
this.getProject().getObjects().property(String.class);
6464

0 commit comments

Comments
 (0)