Skip to content

Releasing

  • Create a local release branch from master

    git checkout master
    git pull
    git checkout -b release_0.20.1
    

  • Update version in fladle-plugin/build.gradle.kts (remove -SNAPSHOT)

    version = "0.20.1"
    

  • Update the current version and next version in mkdocs.yml:

    extra:
      fladle:
        release: '0.20.1'
        next_release: 'REPLACE_WITH_NEXT_VERSION_NUMBER'
    

  • Take one last look

    git diff
    

  • Commit all local changes

    git commit -am "Prepare 0.20.1 release"
    

  • Create a tag and push it

    git tag v0.20.1
    git push origin v0.20.1
    

Pushing the tag automatically triggers the release workflow which:

  1. Publishes to Maven Central
  2. Publishes to Gradle Plugin Portal
  3. Creates a GitHub Release with auto-generated notes

  4. Release to Maven Central

  5. Merge the release branch to master

    git checkout master
    git pull
    git merge --no-ff release_0.20.1
    

  6. Update version in fladle-plugin/build.gradle.kts (increase version and add -SNAPSHOT)

    version = "REPLACE_WITH_NEXT_VERSION_NUMBER-SNAPSHOT"
    

  7. Commit your changes

    git commit -am "Prepare for next development iteration"
    

  8. Push your changes

    git push