forked from jontejj/jargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Deploying & Releasing
Jonatan Jönsson edited this page May 3, 2018
·
21 revisions
- (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- If you're like me and use OS X you should probably install https://www.gpgtools.org/
- For Ubuntu, check https://help.ubuntu.com/community/GnuPrivacyGuardHowto
- Ask me for credentials for the sonatype release/staging areas (stored in .m2/settings.xml)
- 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. - Whilst waiting for the release to be in maven central issue mvn clean install to use the local copy
- Update version in readme.md when maven central has been updated
See Guide for a manual release.