Skip to content

Commit 8dcd412

Browse files
committed
Defaulting to CHANGELOG.md if no output given
1 parent 5798278 commit 8dcd412

13 files changed

+125
-2
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Defaulting to CHANGELOG.md if no output given**
9+
10+
11+
[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*
12+
13+
14+
## 1.46
15+
### No issue
16+
17+
**Reading file parameter correctly**
18+
19+
20+
[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*
21+
822
**doc**
923

1024

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here is and example that will generate a CHANGELOG.md.
1515
<plugin>
1616
<groupId>se.bjurr.gitchangelog</groupId>
1717
<artifactId>git-changelog-maven-plugin</artifactId>
18-
<version>1.45</version>
18+
<version>1.46</version>
1919
<executions>
2020
<execution>
2121
<id>GenerateGitChangelog</id>

git-changelog-maven-plugin-example/CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Defaulting to CHANGELOG.md if no output given**
9+
10+
11+
[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*
12+
13+
14+
## 1.46
15+
### No issue
16+
17+
**Reading file parameter correctly**
18+
19+
20+
[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*
21+
822
**doc**
923

1024

git-changelog-maven-plugin-example/CHANGELOG_custom.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Changelog of Git Changelog Maven plugin.
44

55
## Unreleased
66
### No issue /
7+
Defaulting to CHANGELOG.md if no output given
8+
9+
10+
11+
## git-changelog-maven-plugin-1.46
12+
### No issue /
13+
Reading file parameter correctly
14+
715
doc
816

917

git-changelog-maven-plugin-example/CHANGELOG_ignoreCommitsOlderThan.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Changelog of Git Changelog Maven plugin.
44

55
## Unreleased
66
### No issue
7+
Defaulting to CHANGELOG.md if no output given *2017-07-12 18:48:57*
8+
9+
10+
11+
## git-changelog-maven-plugin-1.46
12+
### No issue
13+
Reading file parameter correctly *2017-07-12 18:08:20*
14+
715
doc *2017-07-09 19:51:59*
816

917

git-changelog-maven-plugin-example/CHANGELOG_inline.md

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*
9+
10+
Defaulting to CHANGELOG.md if no output given
11+
12+
13+
## git-changelog-maven-plugin-1.46
14+
### No issue
15+
16+
[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*
17+
18+
Reading file parameter correctly
19+
820
[6afaf9eaec53f64](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/6afaf9eaec53f64) Tomas Bjerre *2017-07-09 19:51:59*
921

1022
doc

git-changelog-maven-plugin-example/CHANGELOG_jira.md

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Defaulting to CHANGELOG.md if no output given**
9+
10+
11+
[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*
12+
13+
14+
## 1.46
15+
### No issue
16+
17+
**Reading file parameter correctly**
18+
19+
20+
[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*
21+
822
**doc**
923

1024

git-changelog-maven-plugin-example/CHANGELOG_minimal.md

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Defaulting to CHANGELOG.md if no output given**
9+
10+
11+
[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*
12+
13+
14+
## git-changelog-maven-plugin-1.46
15+
### No issue
16+
17+
**Reading file parameter correctly**
18+
19+
20+
[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*
21+
822
**doc**
923

1024

git-changelog-maven-plugin-example/CHANGELOG_mixed.md

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Fix fromCommit and fromRef property typo *21:11:26*
1414

1515

1616
### These commits have not issue in their commit comment
17+
Defaulting to CHANGELOG.md if no output given *18:48:57*
18+
19+
Reading file parameter correctly *18:08:20*
20+
1721
doc *19:51:59*
1822

1923
ignoreCommitsOlderThan *06:45:33*

git-changelog-maven-plugin-example/CHANGELOG_settings.md

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
55
## Next release
66
### Other changes
77

8+
**Defaulting to CHANGELOG.md if no output given**
9+
10+
11+
[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*
12+
13+
14+
## 1.46
15+
### Other changes
16+
17+
**Reading file parameter correctly**
18+
19+
20+
[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*
21+
822
**doc**
923

1024

git-changelog-maven-plugin-example/CHANGELOG_templatefile.md

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Defaulting to CHANGELOG.md if no output given**
9+
10+
11+
[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*
12+
13+
14+
## 1.46
15+
### No issue
16+
17+
**Reading file parameter correctly**
18+
19+
20+
[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*
21+
822
**doc**
923

1024

git-changelog-maven-plugin-example/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<plugin>
1717
<groupId>se.bjurr.gitchangelog</groupId>
1818
<artifactId>git-changelog-maven-plugin</artifactId>
19-
<version>1.46-SNAPSHOT</version>
19+
<version>1.47-SNAPSHOT</version>
2020
<executions>
2121
<!-- Minimal config // -->
2222
<execution>

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

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
@Mojo(name = "git-changelog", defaultPhase = PROCESS_SOURCES)
1919
public class GitChangelogMojo extends AbstractMojo {
20+
private static final String DEFAULT_FILE = "CHANGELOG.md";
21+
2022
@Parameter(property = "toRef", required = false)
2123
private String toRef;
2224

@@ -214,6 +216,11 @@ public void execute() throws MojoExecutionException {
214216
builder.withJiraServer(jiraServer);
215217
}
216218

219+
if (file == null && !isSupplied(mediaWikiUrl)) {
220+
getLog().info("No output set, using file " + DEFAULT_FILE);
221+
file = new File(DEFAULT_FILE);
222+
}
223+
217224
if (file != null) {
218225
builder.toFile(file);
219226
getLog().info("#");

0 commit comments

Comments
 (0)