Skip to content

Latest commit

 

History

History
72 lines (64 loc) · 3 KB

release-steps.md

File metadata and controls

72 lines (64 loc) · 3 KB

Performing a release

General information for publishing to Maven Central

Steps for (mostly) one-time setup

  • git clone https://github.com/com-github-javabdd/com.github.javabdd.git javabdd.git
  • cd javabdd.git
  • Edit .git/config, adding:
    [user]
        name = FirstName LastName
        email = EmailAddress
    By fulling in your FirstName and LastName and your GitHub EmailAddress.
  • Create a GitHub personal access token, at https://github.com/settings/tokens. Use it as a password. It expires after some time, so create a new one if needed.
  • Create a Sonatype personal access token, at https://oss.sonatype.org. Log in and go to your profile. Instead of Summary, select User Token. Create a user token.
  • Create a local GPG key.
  • Configure "ossrh" server credentials in Maven settings. Create/edit $HOME/.m2/settings.xml, to have the following settings:
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          http://maven.apache.org/xsd/settings-1.0.0.xsd">
    
      <profiles>
        <profile>
          <id>ossrh</id>
          <activation>
            <activeByDefault>true</activeByDefault>
          </activation>
          <properties>
            <gpg.passphrase>GPG_KEY</gpg.passphrase>
          </properties>
        </profile>
      </profiles>
    
      <servers>
        <server>
          <id>ossrh</id>
          <username>SONATYPE_USERNAME</username>
          <password>SONATYPE_TOKEN</password>
        </server>
      </servers>
    </settings>
    Fill in your GPG_KEY, SONATYPE_USERNAME and SONATYPE_TOKEN.

Steps for each release

  • Make sure CHANGES.md has an entry for the new release.
  • export JAVA_HOME=SOME_PATH with SOME_PATH the path to the root folder of a JDK 17 installation.
  • export PATH=SOME_PATH/bin:SOME_PATH2/bin:$PATH with SOME_PATH the path to the root folder of your GPG installation, and SOME_PATH2 the path to the root folder of a JDK 17 installation.
  • ./release-prepare from your clone of the JavaBDD repo. When asked for a release version, type something like 9.0.0 and press Enter. When asked for an SCM tag/label, press Enter. When asked for the new development version, press Enter.
  • ./release-perform from the same directoy.
  • If all was successfull, check the new commits that are made, and push them using git push.
  • Also push the new tag using git push --tags.
  • Manually create a new GitHub release, basing it on the new tag, setting the version as release title, and copying the changelog entry from CHANGES.md as the release notes text.
  • Check that the new release is available at https://central.sonatype.com/artifact/com.github.com-github-javabdd/com.github.javabdd/versions.
  • Check that the new release can be found at https://oss.sonatype.org/#nexus-search;quick~javabdd.