zcash-android-wallet-sdk/PUBLISHING.md

1.8 KiB
Raw Blame History

Publishing

Publishing requires:

One time only

  • Get your dev environment setup to compile the SDK
  • copy the GPG key to a directory with proper permissions (chmod 600). Note: If you'd like to quickly locally without subsequently publishing to Maven Central, configure a Gradle property RELEASE_SIGNING_ENABLED=false
  • Create file ~/.gradle/gradle.properties per the instructions in this guide
    • add your sonotype credentials to it
    • point it to the GPG key

Every time

  1. Update the build number and the CHANGELOG
  2. Build locally
    • Critical Note: Building once does not copy the *.so files and results in an artifact <1MB in size. Building twice fixes that problem and results in an artifact >5MB in size. This is probably a bug in the gradle cargo plugin that we use.
    • This will install the files in your local maven repo at ~/.m2/repository/cash/z/ecc/android/
    • Build twice (first with a clean, then without):
./gradlew clean publishToMavenLocal && ./gradlew publishToMavenLocal
  1. Publish via the following command:
# This uploads the file to sonotypes staging area
./gradlew publish --no-daemon --no-parallel
  1. Deploy to maven central:
# This closes the staging repository and releases it to the world
./gradlew closeAndReleaseRepository

Note: Our existing artifacts can be found here and here: https://search.maven.org/artifact/cash.z.ecc.android/zcash-android-sdk https://repo1.maven.org/maven2/cash/z/ecc/android/