Skip to content

ProcessOfRelease

Evgeny Mandrikov edited this page Apr 2, 2025 · 26 revisions
  1. modify org.jacoco.doc/docroot/doc/changes.html (replace "Snapshot Build" by "Release")

  2. modify versions in POMs from SNAPSHOT to $releaseVersion

     ./mvnw versions:set -DgenerateBackupPoms=false -DprocessAllModules -DnewVersion=$releaseVersion
    
  3. commit (should be exactly 32 modified files, verify by git st -s | wc -l or git show --stat)

     git ci --gpg-sign -a -m "Prepare release $releaseVersion"
    
  4. create tag

     git tag --sign -m "Release $releaseVersion" v$releaseVersion
    
  5. modify versions in POMs to next SNAPSHOT

     ./mvnw versions:set -DgenerateBackupPoms=false -DprocessAllModules -DnewVersion=$snapshotVersion
    
  6. modify org.jacoco.doc/docroot/doc/changes.html (add "Snapshot Build")

  7. commit (should be exactly 32 modified files, verify by git st -s | wc -l or git show --stat)

     git ci --gpg-sign -a -m "Prepare for next development iteration"
    
  8. checkout tag

     git checkout v$releaseVersion
    
  9. verify build from tag

     ./mvnw clean install
    
  10. deploy from tag

    ./mvnw deploy -Prelease -Djdk.version=5 -Dbytecode.version=5
    
  11. close staging repository ( https://oss.sonatype.org/ )

  12. verify staging repository, following artifacts should be available - http://www.jacoco.org/jacoco/trunk/doc/repo.html:

  • jacoco-maven-plugin
  • org.jacoco.agent
  • org.jacoco.ant
  • org.jacoco.build
  • org.jacoco.cli
  • org.jacoco.core
  • org.jacoco.report
  • jacoco
  1. release staging repository

  2. push tag

    git push origin v$releaseVersion
    
  3. remove previous snapshot ( https://oss.sonatype.org/ )

Note

For some reason in presence of snapshots for multiple versions query for latest still returns previous.

  1. update https://github.com/jacoco/www.eclemma.org

  2. upload zip to corresponding GitHub release and update description with change information

Clone this wiki locally