Improve project and submodule versioning

This commit is contained in:
Giuliano Mele 2024-03-27 10:02:07 +01:00
parent 6a9ac38770
commit 0db84128ae
Signed by: MelGi
GPG key ID: E790C1211F6DEE5E
6 changed files with 9 additions and 9 deletions

View file

@ -27,8 +27,9 @@ Deployment is done by github actions: `.github/workflows/release.yml`
To trigger the release workflow be sure to have proper access rights and follow the steps below.
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules#about-tag-protection-rules
1. Update revision property in parent POM file `pom.xml`
1. `git tag -a v1.2.3 -m "Bump version 1.2.3"`
1. `git push --tags`
1. Update project and submodules version `mvn versions:set -DnewVersion=1.2.3; mvn versions:commit`
1. Commit your changes
1. Add tag to your commit `git tag -a v1.2.3 -m "Bump version 1.2.3"`
1. Trigger the release by `git push --tags`
After building completes the new release is available on github containing the jar files for each module.

View file

@ -5,7 +5,7 @@
<parent>
<artifactId>keycloak-mfa-tools</artifactId>
<groupId>netzbegruenung</groupId>
<version>${revision}</version>
<version>24.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View file

@ -9,7 +9,7 @@
<parent>
<groupId>netzbegruenung</groupId>
<artifactId>keycloak-mfa-tools</artifactId>
<version>${revision}</version>
<version>24.0.2</version>
</parent>
<properties>

View file

@ -6,7 +6,7 @@
<parent>
<groupId>netzbegruenung</groupId>
<artifactId>keycloak-mfa-tools</artifactId>
<version>${revision}</version>
<version>24.0.2</version>
</parent>
<artifactId>enforce-mfa</artifactId>

View file

@ -7,7 +7,7 @@
<groupId>netzbegruenung</groupId>
<artifactId>keycloak-mfa-tools</artifactId>
<packaging>pom</packaging>
<version>${revision}</version>
<version>24.0.2</version>
<modules>
<module>dev</module>
@ -17,7 +17,6 @@
</modules>
<properties>
<revision>24.0.2</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<keycloak.version>24.0.2</keycloak.version>
<json.version>20230227</json.version>

View file

@ -9,7 +9,7 @@
<parent>
<groupId>netzbegruenung</groupId>
<artifactId>keycloak-mfa-tools</artifactId>
<version>${revision}</version>
<version>24.0.2</version>
</parent>
<dependencies>