Store bintray secrets in local.properties, so that they can be used later in publish.gradle for publishing to bintray.
- export bintray secrets as environment variables:
- $BINTRAY_USER
- $BINTRAY_KEY
- $BINTRAY_USER_ORG
- $BINTRAY_REPO
- put bintray secrets into
local.properties:
./store-bintray-secrets-in-local-properties.sh- publish your package to bintray:
from terminal:
sudo ./gradlew install
sudo ./gradlew bintrayUploadfrom Bitrise using gradle-runner plugin:
inputs:
- gradle_file: ./build.gradle
- gradle_task: bintrayUpload
- gradlew_path: ./gradlew
- mapping_file_exclude_filter: ''PS: see Gradle Bintray Plugin for how to publish to bintray