...
Build the release & run unit tests. It is strongly recommended to do this inside the docker container.
No Format # To launch a bash shell inside the docker container. ./build.sh docker # Once inside the container. ./build.sh clean test dist
- Check that release files look ok - e.g. unpack the sources and run tests.
Sign the release (see Step-By-Step Guide to Mirroring Releases for more information).
No Format ./build.sh sign # Or if using a non-default key (AVRO-3858): GPG_LOCAL_USER=B0CCBDD6 ./build.sh sign
To sign a release, your key must be present in the dist/KEYS file. See the Apache guide to Signing Releases for more details. Also, if you've updated the dist/KEYS file, be sure to update the public Apache KEYS file as well:
Code Block svn co --depth=files https://dist.apache.org/repos/dist/release/avro/ archive-avro/ cd archive-avro/ head -n 14 KEYS This file contains the PGP keys of various developers. Users: pgp < KEYS or gpg --import KEYS Developers: pgp -kxa <your name> and append it to this file. or (pgpk -ll <your name> && pgpk -xa <your name>) >> this file. or (gpg --list-sigs <your name> && gpg --armor --export <your name>) >> this file.
As you can see, the header of the KEYS file has instructions to add your key. Then commit using: svn commit -m "Add key for ..."
Copy release files to the public staging area https://dist.apache.org/repos/dist/dev/avro/
No Format svn co https://dist.apache.org/repos/dist/dev/avro/ avro-dev-dist mkdir avro-dev-dist/avro-X.Y.Z-rcR cp -pr avro/dist/* avro-dev-dist/avro-X.Y.Z-rcR cd avro-dev-dist svn add avro-X.Y.Z-rcR svn commit -m "Artifacts for Avro X.Y.Z RCR"
Stage the default Hadoop 2 version of Java artifacts to the Maven repository:
No Format mvn clean -P dist,sign deploy -DskipTests=true -Davro.version=X.Y.Z
Make sure that you've followed to guide to configure Maven: http://www.apache.org/dev/publishing-maven-artifacts.html
- Find the Staging Repository, and close it.
- Call a release vote on dev at avro.apache.org. Include the URL of the staging repository.
...