• Home
  • History
  • Annotate
  • only in /prebuilts/tools/common/m2/
NameDateSize

..29-Aug-20174 KiB

Android.mk29-Aug-20171.1 KiB

BUILD29-Aug-2017375

readme.txt29-Aug-20171.6 KiB

repository/29-Aug-20174 KiB

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