Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.75 KB

File metadata and controls

56 lines (42 loc) · 1.75 KB

How to release

A brief description of how to release/deploy GIB.

Note: Releases and SNAPSHOTs are deployed via central-publishing-maven-plugin.

Prerequisites

  • You must be a collaborator of GIB (or the owner)

  • GPG

    • GnuPG download

    • Key is published

    • settings.xml contains something like:

      <profiles>
        <profile>
          <id>publish</id>
          <properties>
            <gpg.executable>C:\Program Files (x86)\GnuPG\bin\gpg.exe</gpg.executable>
            <gpg.keyname>your-key-fingerprint</gpg.keyname>
          </properties>
        </profile>
      </profiles>
  • Maven Central access

    • Central Portal guide

    • permissions have been granted (may require a ticket by the GIB owner or another collaborator)

    • settings.xml contains something like:

      <servers>
        <server>
          <id>central</id>
          <username>your-central-token-username</username>
          <password>your-central-token-password</password>
        </server>
      </servers>

      Note: Log into https://central.sonatype.org and proceed as described here to get the token info.

Perform a release

  • ℹ️ project/scm/developerConnection in pom.xml is set to https protocol (not ssh or git)
  • mvn -Ppublish release:prepare
  • mvn -Ppublish release:perform
  • see also maven-release-plugin

Deploy a SNAPSHOT

  • mvn -Ppublish clean deploy
  • note: pom.xml is left untouched