From 0e255430a5c66e7ecfd0c03f4d0985b54054bec6 Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Tue, 6 Jan 2015 23:52:17 +0100 Subject: force the subprojects (in particular openpgp-api-lib) --- build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index a1ab2b09..cca0569e 100644 --- a/build.gradle +++ b/build.gradle @@ -18,3 +18,18 @@ allprojects { mavenCentral() } } + +ext { + compileSdkVersion = 21 + buildToolsVersion = "21.1.2" +} +subprojects { subproject -> + afterEvaluate{ + if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { + android { + compileSdkVersion rootProject.ext.compileSdkVersion + buildToolsVersion rootProject.ext.buildToolsVersion + } + } + } +} \ No newline at end of file -- cgit v1.2.3