fix gradle build fail when app is referencing support-v4
When app is still referencing legacy "support-v4", either directly
or indirectly (e.g. references leanback which references support-v4),
build fails due to missing "support-v4" in maven repository path.
The change add back the uploadArchives task for support-v4.
Change-Id: I5aea7304f9b68a8b70f8d6f1371d53fcbd3b1eff
diff --git a/core-combined/build.gradle b/core-combined/build.gradle
index 697bcd2..f0226e3 100644
--- a/core-combined/build.gradle
+++ b/core-combined/build.gradle
@@ -29,4 +29,36 @@
}
}
+uploadArchives {
+ repositories {
+ mavenDeployer {
+ repository(url: uri(rootProject.ext.supportRepoOut)) {
+ }
+ pom.project {
+ name 'Android Support Library v4'
+ description "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 4 or later."
+ url 'http://developer.android.com/tools/extras/support-library.html'
+ inceptionYear '2011'
+
+ licenses {
+ license {
+ name 'The Apache Software License, Version 2.0'
+ url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+ distribution 'repo'
+ }
+ }
+
+ scm {
+ url "http://source.android.com"
+ connection "scm:git:https://android.googlesource.com/platform/frameworks/support"
+ }
+ developers {
+ developer {
+ name 'The Android Open Source Project'
+ }
+ }
+ }
+ }
+ }
+}