-
Notifications
You must be signed in to change notification settings - Fork 6
Releasing
Max Bechtold edited this page Nov 12, 2017
·
35 revisions
- Maven 3
- Git
- GitHub account with owner rights on this project
- GitHub personal access token (privileges public_repo, repo:status, repo_deployment, user:email) configured in Maven's settings.xml, cf. https://github.com/github/maven-plugins
- Check and complete the Release Notes (in
org.projectusus.documentation/Release Notes). Commit & push. - Determine the version number to release.
You can look at the parent POM if you are unsure. If it says0.7.3-SNAPSHOTthe version number will most likely be0.7.3.
If you are not content with this version, first update the SNAPSHOT version usingmvn org.eclipse.tycho:tycho-versions-plugin:set-version -Dtycho.mode=maven -DnewVersion=A.B.C-SNAPSHOT(whereA.B.Ccould be1.0.0) - Create and push a git tag for the version, name it
vA.B.C(replaceA.B.Cwith the real version number):git tag -a vA.B.C -m "tag vA.B.C"
- In the repository root directory, execute
mvn clean install.
If some tests fail when run in Maven that work in Eclipse, blame Maven Tycho and runmvn clean install -DskipTests. - Change into
org.projectusus.updatesiteand executemvn clean deploy -Drelease.version=A.B.C(replaceA.B.Cwith the real version number).
- Go to
org.projectusus.updatesite-latestand runmvn clean install. This will create a ZIP calledorg.projectusus.updatesite-latest-A.B.C-SNAPSHOT.zipin the target folder. - Rename the file to
org.projectusus.updatesite-latest-A.B.C.zip(replaceA.B.Cwith the real version number). - Create a new release on GitHub for the previously created tag.
- Upload
org.projectusus.updatesite-latest-A.B.C.zip.
- Decide which version number the next release should have.
Normally, this is simply done by incrementing the last part of the version number by one. - Go back to the root folder and run
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -Dtycho.mode=maven -DnewVersion=A.B.D-SNAPSHOT(replaceA.B.Dwith the number of the next version you are going to work on). - Commit and push the changed files to GitHub:
git commit -a -m "Release A.B.C"; git push origin master
- Update the version in the Eclipse Marketplace.
- Send a tweet!
- Celebrate!