diff options
| author | Xavier Ducrohet <xav@google.com> | 2015-03-06 17:17:30 -0800 |
|---|---|---|
| committer | Xavier Ducrohet <xav@google.com> | 2015-03-06 17:34:02 -0800 |
| commit | e4cf5a90e0b6c66a075504ffe04f7eafb34c525d (patch) | |
| tree | beeef3000b77d4830de37b79aed4f0426ead9fcf /build.gradle | |
| parent | f48e02e352d7d86c41c3d33802a09478cccb7771 (diff) | |
| download | android_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.gradle | 5 |
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. |
