Skip to content

Deploying & Releasing

Jonatan Jönsson edited this page May 3, 2018 · 21 revisions
  1. (Only the first time) Install gpg from http://www.gnupg.org/
    Tip: If you choose a gpg.passphrase you can put into .m2/settings.xml to avoid entering it all the time
  2. Ask me for credentials for the sonatype release/staging areas (stored in .m2/settings.xml)
  3. mvn --batch-mode clean release:prepare release:perform -DautoVersionSubmodules=true -DdevelopmentVersion=NEXT.VERSION-SNAPSHOT
    Tip: use -DdryRun=true one time first to avoid unnessecary commits such as this. If you run with dryRun and get error: pathspec 'jargo-parent-...' did not match any file(s) known to git, then it's very likely that the command will succeed without dryrun. Just make sure to clean temporary files with _git clean -f_before running the command without dryrun.
  4. Whilst waiting for the release to be in maven central issue mvn clean install to use the local copy
  5. Update version in readme.md when maven central has been updated

See Guide for a manual release.

Clone this wiki locally