diff options
-rw-r--r-- | build.gradle | 15 |
1 files changed, 15 insertions, 0 deletions
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 |