Skip to content

Commit 2e37d7c

Browse files
committed
task(build)
add support for changelog gen
1 parent 2ce93e4 commit 2e37d7c

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

changelog.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"fromRepo": ".",
3+
"toRef": "refs/heads/master",
4+
//"fromCommit": "0000000000000000000000000000000000000000",
5+
// "ignoreCommitsIfMessageMatches": "^\\[maven-release-plugin\\].*|^\\[Gradle Release Plugin\\].*|^Merge.*",
6+
// "readableTagName": "-([^-]+?)$",
7+
// "dateFormat": "YYYY-MM-dd HH:mm:ss",
8+
"untaggedName": "Next release",
9+
"noIssueName": "Generic changes",
10+
"timeZone": "UTC",
11+
// "removeIssueFromMessage": "true",
12+
13+
// "jiraServer": "https://jiraserver/jira",
14+
// "jiraIssuePattern": "\\b[a-zA-Z]([a-zA-Z]+)-([0-9]+)\\b",
15+
16+
// "gitHubApi": "https://api.github.com/repos/bsorrentino/maven-confluence-plugin",
17+
// "gitHubIssuePattern": "#([0-9]+)",
18+
19+
// "customIssues": [
20+
// { "name": "Bugs", "pattern": "#bug" },
21+
// { "name": "Features", "pattern": "#feature" }
22+
// ],
23+
"void":""
24+
}

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,23 @@
174174
</plugins>
175175
</pluginManagement>
176176

177+
<plugins>
178+
<!--
179+
mvn git-changelog-maven-plugin:git-changelog -N -DtoRef=refs/heads/release/...
180+
-->
181+
<plugin>
182+
<groupId>se.bjurr.gitchangelog</groupId>
183+
<artifactId>git-changelog-maven-plugin</artifactId>
184+
<inherited>false</inherited>
185+
<version>1.78</version>
186+
<!-- Minimal config // -->
187+
<configuration>
188+
<settingsFile>changelog.json</settingsFile>
189+
<file>CHANGELOG.md</file>
190+
</configuration>
191+
</plugin>
192+
193+
</plugins>
177194
</build>
178195
<profiles>
179196
<profile>

0 commit comments

Comments
 (0)