- (Optional) Follow the guide in
REGENERATE.md
if you want to regenerate the full client code (e.g. refreshing with new API endpoints)- If necessary update the dependencies manually OR
- Regenerate and update the
build.gradle
file.- Before generating the client code, remove the
build.gradle
from the.openapi-generator-ignore
file. - In the newly generated
build.gradle
, set up thesigning
andpublication
task as before the regeneration. - Set up the JavaDoc and Source generation
withJavadocJar()
andwithSourcesJar()
extensions. - After generation, add the
build.gradle
back to the ignore file.
- Before generating the client code, remove the
- Update the version in the
build.gradle
file. - Commit & Push
Use the same version for the git tag as in the properties file.
-
Via git tag
- Create a new version tag.
git tag v[MAJOR].[MINOR].[PATCH]
Example:
git tag v2.5.5
- Push the tag.
git push origin --tags
- Create a new version tag.
-
Via Github release
Create a new Github release with a new version tag and release notes.
- Log in to Maven Repository and follow these steps:
- Select
Staging Repositories
and select the version you published. - Click
Close
. The process might take some time, clickRefresh
to get the latest state. - When the repo is closed click
Release
, tick theAutomatically drop when released
option.
- Select
- Make sure the new version is available on Maven Central.