File tree 13 files changed +125
-2
lines changed
git-changelog-maven-plugin-example
src/main/java/se/bjurr/gitchangelog/plugin
13 files changed +125
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
5
5
## Unreleased
6
6
### No issue
7
7
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
+
8
22
** doc**
9
23
10
24
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Here is and example that will generate a CHANGELOG.md.
15
15
<plugin>
16
16
<groupId>se.bjurr.gitchangelog</groupId>
17
17
<artifactId>git-changelog-maven-plugin</artifactId>
18
- <version>1.45 </version>
18
+ <version>1.46 </version>
19
19
<executions>
20
20
<execution>
21
21
<id>GenerateGitChangelog</id>
Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
5
5
## Unreleased
6
6
### No issue
7
7
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
+
8
22
** doc**
9
23
10
24
Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ Changelog of Git Changelog Maven plugin.
4
4
5
5
## Unreleased
6
6
### 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
+
7
15
doc
8
16
9
17
Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ Changelog of Git Changelog Maven plugin.
4
4
5
5
## Unreleased
6
6
### 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
+
7
15
doc * 2017-07-09 19:51:59*
8
16
9
17
Original file line number Diff line number Diff line change @@ -5,6 +5,18 @@ Changelog of Git Changelog Maven plugin.
5
5
## Unreleased
6
6
### No issue
7
7
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
+
8
20
[ 6afaf9eaec53f64] ( https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/6afaf9eaec53f64 ) Tomas Bjerre * 2017-07-09 19:51:59*
9
21
10
22
doc
Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
5
5
## Unreleased
6
6
### No issue
7
7
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
+
8
22
** doc**
9
23
10
24
Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
5
5
## Unreleased
6
6
### No issue
7
7
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
+
8
22
** doc**
9
23
10
24
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ Fix fromCommit and fromRef property typo *21:11:26*
14
14
15
15
16
16
### 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
+
17
21
doc * 19:51:59*
18
22
19
23
ignoreCommitsOlderThan * 06:45:33*
Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
5
5
## Next release
6
6
### Other changes
7
7
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
+
8
22
** doc**
9
23
10
24
Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
5
5
## Unreleased
6
6
### No issue
7
7
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
+
8
22
** doc**
9
23
10
24
Original file line number Diff line number Diff line change 16
16
<plugin >
17
17
<groupId >se.bjurr.gitchangelog</groupId >
18
18
<artifactId >git-changelog-maven-plugin</artifactId >
19
- <version >1.46 -SNAPSHOT</version >
19
+ <version >1.47 -SNAPSHOT</version >
20
20
<executions >
21
21
<!-- Minimal config // -->
22
22
<execution >
Original file line number Diff line number Diff line change 17
17
18
18
@ Mojo (name = "git-changelog" , defaultPhase = PROCESS_SOURCES )
19
19
public class GitChangelogMojo extends AbstractMojo {
20
+ private static final String DEFAULT_FILE = "CHANGELOG.md" ;
21
+
20
22
@ Parameter (property = "toRef" , required = false )
21
23
private String toRef ;
22
24
@@ -214,6 +216,11 @@ public void execute() throws MojoExecutionException {
214
216
builder .withJiraServer (jiraServer );
215
217
}
216
218
219
+ if (file == null && !isSupplied (mediaWikiUrl )) {
220
+ getLog ().info ("No output set, using file " + DEFAULT_FILE );
221
+ file = new File (DEFAULT_FILE );
222
+ }
223
+
217
224
if (file != null ) {
218
225
builder .toFile (file );
219
226
getLog ().info ("#" );
You can’t perform that action at this time.
0 commit comments