Name Date Size #Lines LOC

..--

repository/H25-Apr-2025-22,33019,706

Android.bpH A D25-Apr-202519 KiB628562

LICENSEH A D25-Apr-20251.3 MiB23,39719,360

readme.txtH A D25-Apr-20251.6 KiB3832

robolectric.bpH A D25-Apr-20253.5 KiB9681

readme.txt

1repository/ is a maven repository with libraries used to perform
2certain tasks without accessing an external repository. e.g:
3 - Compile tools/base, tools/swt and tools/buildSrc using Gradle
4 - Convert artifacts from a maven repository to a p2 repository
5   using the p2-maven plugin
6
7Certain dependencies are using only during the build process,
8but others are runtime dependencies that get shipped with the
9SDK Tools. Such runtime dependencies must include a NOTICE file
10next to the artifact or the build will fail.
11
12There are a few different ways to add artifacts to these repositories:
13
141. Add a dependency to an existing project in tools/base, say ddmlib,
15   and then run the cloneArtifacts task from the tools folder.
16
172. Invoke the maven-install-plugin from the command line. For example,
18   the following command was used to install the protobuf jar into
19   the repository:
20    $ mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file \
21        -Dfile=$OUT/host-libprotobuf-java-2.3.0-lite.jar \
22        -DgroupId=com.android.tools.external \
23        -DartifactId=libprotobuf-java-lite \
24        -Dversion=2.3.0 \
25        -Dpackaging=jar \
26        -DgeneratePom=true \
27        -DlocalRepositoryPath=repo \
28        -DcreateChecksum=true
29
303. Adding all the dependencies for a maven plugin can be accomplished
31   as follows:
32     - Create a maven settings.xml file with a pointer to an empty
33       folder as the localRepository.
34     - Run the maven task using that settings.xml
35     - When the task runs, all the necessary artifacts will be downloaded
36       into that local repository.
37     - Copy over the contents of that repository into this folder.
38