Follow these steps to release a new <version> of Lincheck.
-
Checkout
developbranch:
git checkout develop -
Retrieve the most recent
develop:
git pull -
Make sure the
masterbranch is fully merged intodevelop:
git merge origin/master -
Replace
<old-version>with<version>:- in README.md
- in docs/v.list
- in gradle.properties
- in all the published subprojects (
common,jvm-agent,trace)gradle.propertiesfiles- upon new Lincheck release, all subprojects should have the same version
-
Commit the updated
gradle.properties:
git add gradle.properties README.md docs/v.list
git commit -m "Release lincheck-<version>" -
Create a tag related to the releasing
<version>:
git tag lincheck-<version> -
Push the release commit and the tag:
git push
git push origin lincheck-<version> -
Merge the new version into
master:
git checkout master
git merge develop
git push -
Make sure that the
masterbranch build is green on Teamcity -
Press 'deploy' button in the Teamcity publish configuration. Set
releaseVersionproperty to<version>in the pop-up window. Make sure that the build succeeds. After the task succeeds, the artifact should be uploaded to https://central.sonatype.com/ automatically (may take several minutes). -
In GitHub interface:
- Create a release named
lincheck-<version>. - Write a release notes message following the old ones as example of style.
- Create a release named
-
Switch into
developbranch back:
git checkout develop -
Update the version to the next
SNAPSHOTone ingradle.properties.- also update the version in all published subprojects
gradle.propertiesfiles
- also update the version in all published subprojects
-
Commit and push the updated
gradle.properties:
git add gradle.properties
git commit -m "Prepare for next development iteration"
git push
Congratulation! You've just released a new Lincheck version!