Skip to content

ProcessOfRelease

Evgeny Mandrikov edited this page Jun 4, 2026 · 35 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 33 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 33 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. transfer from the OSSRH Staging API compatibility service to the Central Publisher Portal

    curl -v -H "Authorization: Bearer BASE64" 
        \ -X POST 'https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/org.jacoco'
    

    See

  12. verify deployment (https://central.sonatype.org/publish/publish-portal-api/#manually-testing-a-deployment-bundle), 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. push tag

    git push origin v$releaseVersion
    
  2. upload zip to corresponding GitHub release and update description with change information

  3. publish deployment (https://central.sonatype.com/publishing/deployments)

  4. update https://github.com/jacoco/www.eclemma.org , don't forget version in .github/workflows/ci.yml

Clone this wiki locally