aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorNick Chalko <nchalko@google.com>2019-08-02 08:27:01 -0700
committerNick Chalko <nchalko@google.com>2019-08-05 20:14:41 -0700
commitd63e29edb835497cf80c92e299fbbdbb9374176c (patch)
tree8c79333ab6e7ef6422df9552e562d88f55ff1d8b /libs
parent61eadaface82864623c2a77bdb5ead2242f142ce (diff)
downloadTV-d63e29edb835497cf80c92e299fbbdbb9374176c.tar.gz
Use mvn to download deps
Change-Id: I7c87b69cd3abdf1cf19a1b6ee551256271269c71 Test: ./update.sh
Diffstat (limited to 'libs')
-rw-r--r--libs/m2/pom.xml83
-rwxr-xr-xlibs/m2/update.sh25
2 files changed, 108 insertions, 0 deletions
diff --git a/libs/m2/pom.xml b/libs/m2/pom.xml
new file mode 100644
index 00000000..17109de5
--- /dev/null
+++ b/libs/m2/pom.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2019 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.android.tv</groupId>
+ <artifactId>libs</artifactId>
+ <version>1</version>
+
+ <repositories>
+ <repository>
+ <id>google</id>
+ <name>Google Maven Repository</name>
+ <url>https://maven.google.com</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.google.auto</groupId>
+ <artifactId>auto-common</artifactId>
+ <version>0.10</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.auto.factory</groupId>
+ <artifactId>auto-factory</artifactId>
+ <version>1.0-beta6</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger</artifactId>
+ <version>2.15</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger-android</artifactId>
+ <type>aar</type>
+ <version>2.15</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger-android-jarimpl</artifactId>
+ <version>2.15</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger-android-processor</artifactId>
+ <version>2.15</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger-compiler</artifactId>
+ <version>2.15</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger-producers</artifactId>
+ <version>2.15</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger-spi</artifactId>
+ <version>2.15</version>
+ </dependency>
+ </dependencies>
+</project> \ No newline at end of file
diff --git a/libs/m2/update.sh b/libs/m2/update.sh
new file mode 100755
index 00000000..28f3f091
--- /dev/null
+++ b/libs/m2/update.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# Copyright (C) 2019 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+rm *.jar *.aar
+
+mvn -DoutputDirectory=${pwd} \
+ dependency:copy-dependencies \
+ -DincludeScope=runtime \
+ -DexcludeArtifactIds=google-java-format,javax.inject,support-annotations,jsr250-api,checker-compat-qual
+
+