This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
How to Build a Release
Gregory Jansen edited this page May 7, 2013
·
9 revisions
This procedure covers both major and minor releases. Major releases generally come from the master branch, though we have the option of branching for release. Minor releases are performed on a release maintenance branch, such as 3.1.x.
- Go to the master project folder, aka workbench:
cd workbench
- or if no workbench folder has been cloned:
git clone [email protected]:UNC-Libraries/Curators-Workbench.git workbench
cd workbench
- Make sure you are on the correct branch and have no outgoing/incoming changes
- Do
git checkout <branch>
, where branch is master or a minor release branch like 3.1.x - Do
git pull
- Do
git status
- Set the email and user name for the local git repository, if not already set
git config -l
git config user.email <your eclipse commiter email address>
git config user.name <your name>
- Check license headers
mvn license:check
-
vim pom.xml
- edit parent POM until license exclusions are up to date -
mvn license:format
- apply license header to remaining files git commit
- Update branding:
- splash image: workbench_plugin/splash.bmp from splash.xcf
- about text: workbench_plugin/plugin.xml
- about dialog text: eclipse-repository/workbench.product
- Create a local release branch (just creating it, not checking it out yet)
git branch workbench-<version>
- This local branch will not be pushed to the remote repository. It is just a local branch used for this release process.
- Update the checked out branch pom files to the next qualified (SNAPSHOT) version.
-
mvn tycho-versions:set-version -DnewVersion=<version+1>.qualifier
(updates version in POM and bundle manifests) - Update version in eclipse_repository/category.xml
git commit -s -a -m "new version <version+1>-SNAPSHOT"
git push
- checkout the local release branch you created above
git checkout workbench-<version>
- update checked out release branch pom files to the release version.
- `mvn tycho-versions:set-version -DnewVersion= - update version in POMs and manifests.
- Update version in eclipse_repository/category.xml
- commit and tag your changes
git commit -s -a -m "new release <release version>"
git tag <release version>
- deploy the release artifacts to Artifactory
mvn clean deploy
- push the release tag
git push origin <release version>
- remove release branch if you intend to keep the local git repository
-
git checkout <working-branch>
- switch back to master or preferred branch git branch -D workbench-<version>