• Home
Name Date Size #Lines LOC

..--

gradle/08-Apr-2025-

src/08-Apr-2025-3,1712,334

OWNERSD08-Apr-202556 33

README.mdD08-Apr-20251.7 KiB4732

build.gradle.ktsD08-Apr-20253 KiB8655

gradle.propertiesD08-Apr-202565 22

gradlewD08-Apr-20258.4 KiB257114

importMaven.shD08-Apr-2025570 2012

importMaven.versions.tomlD08-Apr-2025986 2118

import_maven_artifacts.pyD08-Apr-20253.5 KiB9071

settings.gradle.ktsD08-Apr-20251.5 KiB4527

README.md

1Helper script to download prebuilts for offline builds.
2
3It can download maven artifacts or KMP prebuilts.
4
5By default, arguments passed into it the script that do not immediately
6follow an option (e.g. --optionName value) are evaluated to be maven
7artficat coordinates.
8
9# Quickstart
10
11## download single artifact
12`./importMaven.sh androidx.room:room-runtime:2.4.2`
13`./importMaven.sh --artifacts androidx.room:room-runtime:2.4.2`
14
15## download multiple artifacts
16`./importMaven.sh androidx.room:room-runtime:2.4.2 com.squareup.okio:okio:3.0.0`
17
18## download multiple artifacts with explicit argument
19`./importMaven.sh --artifacts androidx.room:room-runtime:2.4.2,com.squareup.okio:okio:3.0.0`
20
21## download konan prebuilts needed for kotlin native
22`./importMaven.sh import-konan-binaries --konan-compiler-version 1.6.1`
23
24## download everything in the dependencies file of AndroidX
25`./importMaven.sh import-toml`
26
27## download an androidx prebuilt (via androidx.dev)
28`./importMaven.sh --androidx-build-id 123 androidx.room:room-runtime:2.5.0-SNAPSHOT androidx.room:room-compiler:2.5.0-SNAPSHOT`
29
30## download metalava
31`./importMaven.sh --metalava-build-id 8660637 --redownload  --artifacts com.android.tools.metalava:metalava:1.0.0-alpha06`
32
33## verbose logging
34`./importMaven.sh --verbose androidx.room:room-runtime:2.4.2`
35
36# More Help:
37
38For full list of options, please execute one of the commands with `--help`
39```
40./importMaven.sh --help
41./importMaven.sh import-konan-prebuilts --help
42./importMaven.sh import-toml --help
43```
44
45# Next steps:
46Gradle 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`
47