This document describes the current procedure for preparing an Ignite 3 release.
- Create a GPG key, upload it to a keyserver, and locate its ID. More details here: https://infra.apache.org/openpgp.html
- Checkout Apache distribution directories:
svn checkout https://dist.apache.org/repos/dist/dev/ignite dist-dev svn checkout https://dist.apache.org/repos/dist/release/ignite dist-release
- Provide your Apache credentials to Gradle (required for uploading to Apache Nexus):
You can specify it in project gradle.property but DO NOT FORGET revert it before push. Better place is gradle.properties in HOME dir, read about it https://docs.gradle.org/current/userguide/build_environment.html
staging_user=*INSERT STAGING USERNAME HERE* staging_password=*INSERT STAGING PASSWORD HERE*
For all the commands going forward:
- Replace
{version}
with the version number being released. - Replace
{rc}
with the current sequential number of the release candidate. - Replace
{gpg}
with your GPG key ID. - Replace
{dist.dev}
with the local path to the development distribution directory. - Replace
{dist.release}
with the local path to the release distribution directory.
- Go to the project home folder.
- Create a Git tag:
git tag -a {version}-rc{rc} -m "{version}-rc{rc}" git push --tags
- Setup properties in gradle.properties.
You can specify it in project gradle.properties but DO NOT FORGET to revert it before push.
Better place is gradle.properties in HOME dir, you can read about it here
https://docs.gradle.org/current/userguide/build_environment.html
To generate a secret key ring file use the following command
signing.keyId=*INSERT KEY HERE LAST 8 CHARS* signing.password=*INSERT PASSWORD HERE* signing.secretKeyRingFile=*INSERT KEY RING ABSOLUTE PATH HERE*
Show key id command (you need only last 8 chars from printed key)gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg
gpg -K
- Build the project, sign the artifact and create a staging repository:
./gradlew publishAllPublicationsToMavenRepository
- Login to the Apache Nexus and close the new repository: https://repository.apache.org/#stagingRepositories
- Create an empty folder under the development distribution directory:
rm -rf {dist.dev}/{version}-rc{rc} mkdir {dist.dev}/{version}-rc{rc}
- Create ZIP, DEB, RPM packages, .NET and C++ client, sign them and create checksums:
./gradlew -PprepareRelease prepareRelease
- Copy all packages along with checksums and signatures to the development distribution directory:
cp packaging/build/release/* {dist.dev}/{version}-rc{rc}
- Commit ZIP and DEB\RPM packages:
cd {dist.dev} svn add {version}-rc{rc} svn commit -m “Apache Ignite {version} RC{rc}”
- Put the release on a vote on the developers mailing list.
Perform the following actions ONLY after the vote is successful and closed.
- Login to the Apache Nexus and release the staging repository: https://repository.apache.org/#stagingRepositories
- Create an empty folder under the release distribution directory:
rm -rf {dist.release}/{version} mkdir {dist.release}/{version}
- Copy ZIP packages along with checksums and signatures to the release distribution directory:
cp {dist.dev}/{version}-rc{rc}/* {dist.release}/{version}
- Commit ZIP packages:
cd {dist.release} svn add {version} svn commit -m “Apache Ignite {version}”