Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Prerequisites

  1. Java at least 1.56
  2. Maven at least 3.0.34

Sources

https://github.com/SonarSource/sonar-eclipse

...

  1. Before release verify that you can build project by executing following command, which should also create some jar-files (in directories "org.sonar.ide.eclipse.wsclient/jars/", "org.sonar.ide.eclipse.runtime/plugins/" and "org.sonar.ide.eclipse.runtime/jars") for build and then build project :

    Code Block
    antmvn buildclean install
    
  2. Old version should be archived, i.e. all files from http://dist.sonar-ide.codehaus.org/eclipse/ should be moved to new directory http://dist.sonar-ide.codehaus.org/eclipse-archives/$previousVersion
  3. Qualified version for release should be constructed with timestamp. This can be done as following :

    Code Block
    timestamp=`date -u +%Y%m%d-%H%M`
    releaseVersion=$tagVersion.$timestamp
    

    For example: 2.3.0.20111208-0742

  4. This version should be set for all pom.xml and MANIFEST.MF files. This can be done by execution of following command from directory "org.sonar.ide.eclipse.parent" :

    Code Block
    mvn org.eclipse.tycho:tycho-versions-plugin:set-version -Dtycho.mode=maven -DnewVersion=$releaseVersion
    git commit -am "Prepare release $tagVersion"
    
  5. Verify build by execution of following command from directory "org.sonar.ide.eclipse.parent" :

    Code Block
    mvn clean install
    
  6. At this point version for release can be tagged. And deployment can be done by execution of following command from directory "org.sonar.ide.eclipse.parent" :

    Code Block
    mvn -Ppublish-site clean install -Dsonar-ide.site=dav:https://dav.codehaus.org/dist/sonar-ide
    
  7. In order to prepare for next development version execute following command from directory "org.sonar.ide.eclipse.parent" :

    Code Block
    mvn org.eclipse.tycho:tycho-versions-plugin:set-version -Dtycho.mode=maven -DnewVersion=$nextVersion-SNAPSHOT
    git commit -am "Prepare for next development iteration"
    
  8. And don't forget to push changes to GitHub

...