Skip to content

How to make release

Roman Ivanov edited this page Jul 19, 2018 · 68 revisions
  1. Update version in case main project released bug fixes only
mvn versions:set -DnewVersion=4.10.1-SNAPSHOT && mvn versions:commit
git add pom.xml checkstyle-all/pom.xml checkstyle-sonar-plugin/pom.xml
git commit -m "config: update to 4.10.1-SNAPSHOT" && git push
  1. Test it first ! https://github.com/checkstyle/sonar-checkstyle/wiki/How-to-test-released-binary

1.1) push all to remote and wait for CI to be green.

Checkstyle version update require update in root pom.xml only. Close issue for checkstyle upgrade.

Do not forget update README.md with new version in table.

1.2) Recheck that there are no Bugs and Vulnerabilities at https://sonarcloud.io/dashboard?id=com.github.checkstyle%3Acheckstyle-sonar-plugin-parent , It mandatory gate level to pass plugin to Sonar Update Center.

  1. generate release notes
git log --pretty=oneline --abbrev-commit $(git rev-list --tags --max-count=1)..HEAD \
   | grep -vE "minor|doc|config|maven-release-plugin" | sed 's/^....... //'

2.2) update README file for new version

  1. do version bump
mvn release:prepare release:clean -B
  1. make a released binary JAR
git checkout $(git rev-list --tags --max-count=1)
mvn clean package
git checkout master

  1. upload binary file and UPDATE release notes at github page - https://github.com/checkstyle/sonar-checkstyle/releases

5.1) close milestone, one new is required. https://github.com/checkstyle/sonar-checkstyle/milestones

5.2) Restore version to major in case there was bug fix release

mvn versions:set -DnewVersion=4.11-SNAPSHOT && mvn versions:commit
git add pom.xml checkstyle-all/pom.xml checkstyle-sonar-plugin/pom.xml
git commit -m "config: update to 4.11-SNAPSHOT" && git push
  1. Announcements

7.1) send Request For Feedback (RFF) to Sonarqube (SQ)

Request For Feedback (RFF) period on the mailing list of Sonar. Provide the following information:

  • short description of the version
  • SQ versions compatibility
  • Changelog URL
  • download URL
  • The feedback period is open during 2 weeks, until Sunday January 15.

At the end of the RFF, notify a SonarQube(SQ) member through the same google group thread that binary is ok to put to Sonar Software Update Center. Sonar discussion group is: https://community.sonarsource.com Category: "Plugin Development"

!!Example!!: https://community.sonarsource.com/t/rff-checkstyle-plugin-4-11

8.2) Make an notification in 2 weeks to make release post

8.3) after 2 weeks Release to Sonar should be done through mail-list

!!!Example!!! - https://community.sonarsource.com/t/new-release-checkstyle-plugin-4-11/1175

Format of post and more details - https://docs.sonarqube.org/display/DEV/Deploying+to+the+Marketplace

8.4) As [NEW RELEASE] is posted - close RFF with comment

2 weeks are passed. No complains or problems were reported.
NEW RELEASE - .......link......

!!!Example!!!: https://groups.google.com/forum/#!topic/sonarqube/IsSscLHHcog