Skip to content

Commit

Permalink
feat: stepping git-changelog-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Sep 24, 2023
1 parent 83977c1 commit 6788b56
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ Summary
Release and sign with:

```sh
./mvnw se.bjurr.gitchangelog:git-changelog-maven-plugin:semantic-version \
release:prepare release:perform -B \
se.bjurr.gitchangelog:git-changelog-maven-plugin:git-changelog \
&& git commit -a -m "chore: updating changelog" \
&& git push \
release:prepare release:perform -B
|| git clean -f
```

Expand Down
39 changes: 26 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>se.bjurr.bom</groupId>
<artifactId>bjurr-bom</artifactId>
Expand Down Expand Up @@ -46,7 +49,7 @@
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.parameters>true</maven.compiler.parameters>
<changelog.version>1.97.1</changelog.version>
<changelog.version>1.100.0</changelog.version>
<gpg.version>3.0.1</gpg.version>
<fmt.version>2.20</fmt.version>
<violations.version>1.50.8</violations.version>
Expand Down Expand Up @@ -189,17 +192,6 @@
<failsOnError>false</failsOnError>
</configuration>
</plugin>
<plugin>
<groupId>se.bjurr.gitchangelog</groupId>
<artifactId>git-changelog-maven-plugin</artifactId>
<version>${changelog.version}</version>
<configuration>
<readableTagName>.*-(.*)$</readableTagName>
<file>CHANGELOG.md</file>
<ignoreCommitsIfMessageMatches>^\[maven-release-plugin\].*|^\[Gradle
Release Plugin\].*|^Merge.*|.*\[GRADLE SCRIPT\].*</ignoreCommitsIfMessageMatches>
</configuration>
</plugin>
<plugin>
<groupId>se.bjurr.violations</groupId>
<artifactId>violations-maven-plugin</artifactId>
Expand Down Expand Up @@ -279,6 +271,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>se.bjurr.gitchangelog</groupId>
<artifactId>git-changelog-maven-plugin</artifactId>
<version>${changelog.version}</version>
<configuration>
<readableTagName>.*-(.*)$</readableTagName>
<file>CHANGELOG.md</file>
<ignoreCommitsIfMessageMatches>^\[maven-release-plugin\].*|^\[Gradle
Release Plugin\].*|^Merge.*|.*\[GRADLE
SCRIPT\].*</ignoreCommitsIfMessageMatches>
</configuration>
<executions>
<execution>
<id>GenerateGitChangelog</id>
<phase>generate-sources</phase>
<goals>
<goal>semantic-version</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit 6788b56

Please sign in to comment.