summaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@google.com>2015-03-06 17:17:30 -0800
committerXavier Ducrohet <xav@google.com>2015-03-06 17:34:02 -0800
commite4cf5a90e0b6c66a075504ffe04f7eafb34c525d (patch)
treebeeef3000b77d4830de37b79aed4f0426ead9fcf /build.gradle
parentf48e02e352d7d86c41c3d33802a09478cccb7771 (diff)
downloadandroid_frameworks_support-e4cf5a90e0b6c66a075504ffe04f7eafb34c525d.tar.gz
android_frameworks_support-e4cf5a90e0b6c66a075504ffe04f7eafb34c525d.tar.bz2
android_frameworks_support-e4cf5a90e0b6c66a075504ffe04f7eafb34c525d.zip
workaround for aar dependencies in pom.
Apparently depending on a non jar dependency in a pom must include the type of the dependency, even though the dependency declares its own type in its pom. Since Gradle doesn't properly do this, a workaround is to customize the pom on the fly to do this (until Gradle is fixed). Change-Id: Id39ae4b4183e621ba1295ae8ee840fd0125e5d6e
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 9ac4cd82f4..d364879637 100644
--- a/build.gradle
+++ b/build.gradle
@@ -147,6 +147,11 @@ subprojects {
}
}
+ def deployer = release.repositories.mavenDeployer
+ deployer.pom*.whenConfigured { pom ->
+ pom.dependencies.findAll {dep -> dep.groupId == 'com.android.support' && dep.artifactId != 'support-annotations' }*.type = 'aar'
+ }
+
// before the upload, make sure the repo is ready.
release.dependsOn rootProject.tasks.prepareRepo
// make the mainupload depend on this one.