- (Optional) Follow the guide in
REGENERATE.mdif 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.gradlefile.- Before generating the client code, remove the
build.gradlefrom the.openapi-generator-ignorefile. - In the newly generated
build.gradle, set up themavenPublishingtask as before the regeneration. - Clean out any not necessary task or dependencies.
- After generation, add the
build.gradleback to the ignore file.
- Before generating the client code, remove the
- Update the version in the
build.gradlefile. - 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 Central Repository and follow these steps:
- Go to the
Publishpage and select the version you published. - Click
Publish. The process might take some time, clickRefreshto get the latest state.
- Go to the
- Make sure the new version is available on Maven Central.