Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Sakai Release Process
Releasing sakai involves changing versions and creating tags and deploying artifacts to maven repo's.
* maybe a snippet why maven release plugin is a pain and can't be used see
- Versioning the new version
For this task we will leverage the maven versions plugin
When a branch is ready to be made a version the first thing is to update versions
In order to ensure all the versions were updated accuratley its important to find out how many versions there currently are with something like:
grep -rl "<version>10-SNAPSHOT</version>" --include=*.xml * |wc -l
Then update the version using:
mvn versions:set -DnewVersion=10.0 -DgenerateBackupPoms=false -f master/pom.xml
this will update all the relevant versions of all the sakai modules to the 10.0 version but to be sure we check it with
grep -rl "<version>10-SNAPSHOT</version>" --include=*.xml * |wc -l
relevant xml in pom:
Finally we commit the changes to the version in all projects:
svn commit --include-externals -m "Update Sakai Version to 10.0"
- Tagging
The maven plugin that would typically handle this is the scm plugin
but currently there is an issue with this plugin and our project structuring see
relevant xml in pom:
* insert tag script instructions
- Versioning the new developement version
using the same process as we did above update versions to the new developement version with:
mvn versions:set -DnewVersion=10.1-SNAPSHOT -DgenerateBackupPoms=false -f master/pom.xml
commit the changes to the version in all projects:
svn commit --include-externals -m "Update Sakai Version to 10.1-SNAPSHOT"
- Deploy artifacts
This is typically handled with the deploy plugin
Recently there have been discussions that sakai should only release api's to maven repositories.
They are possibly a few ways to handle this but we could configure the deploy plugin or possibly use profiles.
gpg sign the artifacts.
relevant area in the pom:
* Note currently there are some properties that will need to be updated manually in master currently they are:
- References (Maven plguins) (Codehaus plugins)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment