diff --git a/scripts/publish-android-release.sh b/scripts/publish-android-release.sh index 179ad6964..870d2d75d 100755 --- a/scripts/publish-android-release.sh +++ b/scripts/publish-android-release.sh @@ -12,5 +12,5 @@ elif [ "$IS_SNAPSHOT" != "" ]; then exit 1 else openssl aes-256-cbc -d -in scripts/bintray-publish-keys.enc -k "$ANDROID_PUBLISH_KEY" >> "$BASEDIR/gradle.properties" - "$BASEDIR"/gradlew bintrayUpload --info -PdryRun=false + "$BASEDIR"/gradlew bintrayUpload --quiet -PdryRun=false fi diff --git a/scripts/publish-android-snapshot.sh b/scripts/publish-android-snapshot.sh index 179ad6964..7023f5aaf 100755 --- a/scripts/publish-android-snapshot.sh +++ b/scripts/publish-android-snapshot.sh @@ -7,10 +7,10 @@ IS_SNAPSHOT="$(grep 'VERSION_NAME=[0-9\.]\+-SNAPSHOT' "$BASEDIR/gradle.propertie if [ "$ANDROID_PUBLISH_KEY" == "" ]; then echo "No encryption key. Skipping snapshot deployment." exit -elif [ "$IS_SNAPSHOT" != "" ]; then - echo "Build appears to be a SNAPSHOT release, but this is a script for building stable releases. Skipping ..." +elif [ "$IS_SNAPSHOT" == "" ]; then + echo "Skipping build. Given build doesn't appear to be a SNAPSHOT release." exit 1 else - openssl aes-256-cbc -d -in scripts/bintray-publish-keys.enc -k "$ANDROID_PUBLISH_KEY" >> "$BASEDIR/gradle.properties" - "$BASEDIR"/gradlew bintrayUpload --info -PdryRun=false + openssl aes-256-cbc -d -in scripts/gradle-publish-keys.enc -k "$ANDROID_PUBLISH_KEY" >> "$BASEDIR/gradle.properties" + "$BASEDIR"/gradlew uploadArchives --quiet fi