Quickstart
March 2, 2023 ยท View on GitHub
Helper script to download prebuilts for offline builds.
It can download maven artifacts or KMP prebuilts.
By default, arguments passed into it the script that do not immediately follow an option (e.g. --optionName value) are evaluated to be maven artficat coordinates.
Quickstart
download single artifact
./importMaven.sh androidx.room:room-runtime:2.4.2
./importMaven.sh --artifacts androidx.room:room-runtime:2.4.2
download multiple artifacts
./importMaven.sh androidx.room:room-runtime:2.4.2 com.squareup.okio:okio:3.0.0
download multiple artifacts with explicit argument
./importMaven.sh --artifacts androidx.room:room-runtime:2.4.2,com.squareup.okio:okio:3.0.0
download konan prebuilts needed for kotlin native
./importMaven.sh import-konan-binaries --konan-compiler-version 1.6.1
download everything in the dependencies file of AndroidX
./importMaven.sh import-toml
download an androidx prebuilt (via androidx.dev)
./importMaven.sh --androidx-build-id 123 androidx.room:room-runtime:2.5.0-SNAPSHOT androidx.room:room-compiler:2.5.0-SNAPSHOT
download metalava
./importMaven.sh --metalava-build-id 8660637 --redownload --artifacts com.android.tools.metalava:metalava:1.0.0-alpha06
verbose logging
./importMaven.sh --verbose androidx.room:room-runtime:2.4.2
More Help:
For full list of options, please execute one of the commands with --help
./importMaven.sh --help
./importMaven.sh import-konan-prebuilts --help
./importMaven.sh import-toml --help
Next steps:
Gradle may not trust artifacts that are not signed with a trusted key. To ask Gradle to trust these artifacts, run development/update-verification-metadata.sh