Skip to content

Releasing & deploying

t-de-jong edited this page May 2, 2018 · 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:

Releasing

  • 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 x.x.x
    • git push --tags
  • Push the changes
    • git push
  • Go to Github Releases and add release notes for the newly added tag

Deploying

  • Start a deployment
    • ./gradlew clean build uploadArchives
      • If you encounter an 'could not find metadata' error: ignore this, this is expected behaviour
    • Go to oss.sonatype.org and login
    • Click staging in the left sidebar
    • Select the last repository with com.nedap
    • Click the close button in the top-menu bar and click confirm
    • Wait until the release is finished
    • Click release in the top-menu bar and click confirm

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

Clone this wiki locally