forked from nedap/archie
-
Notifications
You must be signed in to change notification settings - Fork 24
Releasing & deploying
Mattijs Kuhlmann edited this page Nov 23, 2022
·
6 revisions
Archie is published to the Central Repository. For setup, follow the steps in http://central.sonatype.org/pages/gradle.html.
Take the following steps to deploy and release Archie to version x.x.x:
- In the build.gradle file, update the version of the project
- In the README, also update the version anywhere that it is used
- Commit these two files with the message "Update version to x.x.x"
- Add a tag to this version
git tag vx.x.x
git push --tags
- Push the changes
git push
- Go to Github Releases and add release notes for the newly added tag
- Start a deployment
- Make sure you have GPG setup with a private key recognized by Ossrh
- Make sure you have an Ossrh account with the correct rights
-
./gradlew clean build publish
- If you encounter an 'could not find metadata' error: ignore this, this is expected behaviour
- Go to https://oss.sonatype.org and login
- Click
staging repositories
in the left sidebar - Select the last repository with
com.nedap
- Click the
close
button in the top-menu bar and clickconfirm
- Wait until the release is finished
- Click
release
in the top-menu bar and clickconfirm
After this is all done, update the version in the build.gradle file to x.x.y-snapshot directly on master and push this to Github. This makes sure that developers continue their work on a snapshot branch. * Do not update the README for this new snapshot, so that users can see the latest stable release in the README