Skip to content

Commit

Permalink
docs: mentioning inherited in README (refs #44)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Sep 24, 2022
1 parent 69b1aa0 commit 623b0dc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Here is and example that will generate a CHANGELOG.md when running `mvn generate
</build>
```

If you have a multimodule you may want to put `<inherited>false</inherited>` within the `<plugin>` tag to avoid it being applied to all child projects.

### Template - Simple

```hbs
Expand Down
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>se.bjurr.gitchangelog</groupId>
<artifactId>git-changelog-maven-plugin</artifactId>
<version>1.93-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>maven-plugin</packaging>
<name>git-changelog-maven-plugin</name>
<description>Maven plugin that can generate a changelog from git repo.</description>
Expand Down
15 changes: 10 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash
mvn versions:update-properties
mvn release:prepare release:perform -B -DperformRelease=true || exit 1
./build.sh
git commit -a --amend --no-edit
git push -f

gpg -o /tmp/dummy --sign .gitignore \
&& nextVersion=$(npx git-changelog-command-line --print-next-version) \
&& ./mvnw versions:set -DnewVersion=$nextVersion-SNAPSHOT \
&& git commit -a -m "chore: setting version $nextVersion-SNAPSHOT" \
&& ./mvnw release:prepare release:perform -B -DperformRelease=true \
&& npx git-changelog-command-line -of CHANGELOG.md -ip ".*maven-release-plugin.*" \
&& git commit -a -m "chore: updating changelog" \
&& git push \
|| git clean -f && git checkout pom.xml

0 comments on commit 623b0dc

Please sign in to comment.