Skip to content

Commit 979ec11

Browse files
committed
feat: Add support for including partials in mustache templates
1 parent ce44e6f commit 979ec11

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4444
<maven.compiler.target>1.8</maven.compiler.target>
4545
<maven.compiler.source>1.8</maven.compiler.source>
46-
<changelog-lib>1.159.0</changelog-lib>
46+
<changelog-lib>1.160.0</changelog-lib>
4747
</properties>
4848

4949
<dependencies>

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

+12
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ public class GitChangelogMojo extends AbstractMojo {
4949
@Parameter(property = "templateContent", required = false)
5050
private String templateContent;
5151

52+
@Parameter(property = "templateBaseDir", required = false)
53+
private String templateBaseDir;
54+
55+
@Parameter(property = "templateSuffix", required = false)
56+
private String templateSuffix;
57+
5258
@Parameter(property = "file", required = false)
5359
private File file;
5460

@@ -182,6 +188,12 @@ public void execute() throws MojoExecutionException {
182188
if (this.isSupplied(this.templateContent)) {
183189
builder.withTemplateContent(this.templateContent);
184190
}
191+
if (this.isSupplied(this.templateBaseDir)) {
192+
builder.withTemplateBaseDir(templateBaseDir);
193+
}
194+
if (this.isSupplied(this.templateSuffix)) {
195+
builder.withTemplateSuffix(templateSuffix);
196+
}
185197
if (this.isSupplied(this.fromCommit)) {
186198
builder.withFromCommit(this.fromCommit);
187199
}

0 commit comments

Comments
 (0)