Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • You will need to upload your maven credentials and signatory credentials for the release script by editing your `~/.gradle/gradle.properties` with:

    Code Block
    title~/.gradle/gradle.properties
    mavenUrl=https://repository.apache.org/service/local/staging/deploy/maven2                                                                                                                                
    mavenUsername=your-apache-id
    mavenPassword=your-apache-passwd
    signing.keyId=your-gpgkeyId
    signing.password=your-gpg-passphrase
    signing.secretKeyRingFile=/Users/your-id/.gnupg/secring.gpg

    If you don't already have a secret key ring under ~/.gnupg (which will be the case with GPG 2.1 and beyond), you will need to manually create it with `gpg --export-secret-keys -o ~/.gnupg/secring.gpg`. Obviously, be careful not to publicly upload your passwords. You should be editing the `gradle.properties` file under your home directory, not the one in Kafka itself.

  • Make sure your `~/.m2/settings.xml` is configured for pgp signing and uploading to the apache release maven:

    Code Block
    title~/.m2/settings.xml
    <servers> 
      <server>
        <id>apache.releases.https</id>
        <username>your-apache-id</username>
        <password>your-apache-passwd</password>
      </server>
      <server>
        <id>your-gpgkeyId</id>
        <passphrase>your-gpg-passphrase</passphrase>
      </server>
    </servers>
    <profiles>
      <profile>
        <id>gpg-signing</id>
        <properties>
          <gpg.keyname>your-gpgkeyId</gpg.keyname>
          <gpg.passphraseServerId>your-gpgkeyId</gpg.passphraseServerId>
        </properties>
      </profile>
    </profiles>


  • You may also need to update some gnupgp configs:

    Code Block
    echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
    
    echo "use-agent" >> ~/.gnupg/gpg.conf
    echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
    
    echo RELOADAGENT | gpg-connect-agent


...