Releasing a New ktfmt Version

  1. Update bump_versions.sh with the version information, and comment out its exit command.

  2. Run ./bump_versions.sh.

  3. Obtain the private key used to sign ktfmt releases, as well as its passphrase.

  4. Make sure your ~/.m2/settings.xml is:

    <settings>
    <servers>
        <server>
        <id>ossrh</id>
        <username>your-jira-id</username>
        <password>your-jira-pwd</password>
        </server>
    </servers>
    </settings>
    
  5. Run mvn -Prelease clean deploy

  6. Enter the passphrase when requested.

  7. Create a new release at https://github.com/facebookincubator/ktfmt/releases . Use a previous release as a template.

  8. Upload release files by dragging them from core/target/.

This is terribly manual. We'll hopefully soon improve this using GitHub Actions.