- Update version in the following files
- pom.xml
- Depending projects pom.xml
- README.md
git commit -m 'Releasing <project>@<version>' fx [email protected]
git push
git tag <project>@<version> # fx [email protected]
git push origin <project>@<version> # fx [email protected]
mvn clean deploy -P release --settings settings.xml
- Build and deploy release
cd <project to be released>
mvn clean deploy -P release
- Generate key pair and export pubkey
gpg --gen-key # Create key with your company e-mail
gpg --armor --export [email protected]
-
Register key pair with https://pgp.mit.edu/
-
Add yourself to the pom.xml files in the developer section
-
Add login for osshr to .m2/settings.xml
<servers>
<server>
<id>ossrh</id>
<username>NordeaOSSBuild</username>
<password>{the password}</password>
</server>
</servers>