summaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2014-06-18 09:10:36 -0700
committerJeff Davidson <jpd@google.com>2014-06-18 09:10:36 -0700
commit84faec58c451a6e317eb8c1621493fc530e5dbcc (patch)
treec1527f0c2fa492e58dd7078585ebfb50642a853d /build.gradle
parent823b284b75bffd7b48b611b09ad8c769af28a787 (diff)
downloadandroid_frameworks_support-84faec58c451a6e317eb8c1621493fc530e5dbcc.tar.gz
android_frameworks_support-84faec58c451a6e317eb8c1621493fc530e5dbcc.tar.bz2
android_frameworks_support-84faec58c451a6e317eb8c1621493fc530e5dbcc.zip
Use a single build tools version for frameworks/support.
Allows apps in the Android tree which depend on these libraries to use a single build tools version in their own top-level gradle files. For now the compile SDK is left alone. This means that projects must still map both API 19 and API 21 full SDKs in their manifests. Change-Id: I303438ec3f06af6e3a3c7ffcd554b730b1e07a0e
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index ae2f294f86..2f18675d3a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -12,6 +12,7 @@ buildscript {
ext.supportVersion = '19.2.0'
ext.extraVersion = 6
ext.supportRepoOut = ''
+ext.buildToolsVersion = '19.0.3'
/*
* With the build server you are given two env variables.
@@ -126,6 +127,12 @@ subprojects {
release.dependsOn rootProject.tasks.prepareRepo
// make the mainupload depend on this one.
mainUpload.dependsOn release
+
+ project.plugins.whenPluginAdded { plugin ->
+ if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
+ project.android.buildToolsVersion = rootProject.buildToolsVersion
+ }
+ }
}
FileCollection getAndroidPrebuilt(String apiLevel) {