summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Felix Schmakeit <jfschmakeit@google.com>2014-02-26 15:39:20 +1100
committerJan-Felix Schmakeit <jfschmakeit@google.com>2014-02-26 22:30:33 +0000
commiteb3b4f39e3ad3a48792a3845cc981c332fe6a0ad (patch)
tree49183b5a754d6e34c998938fa2cd8131578ae487
parent6526e63c6b3a05497661af242a5bfb8686da11ab (diff)
downloadbuild-kitkat-wear.tar.gz
Add the folllowing to your template-params.xml to add dependencies to the generated build.gradle file: <repository>...</repository> Change-Id: I79c70aeef4a07d6228b762da19bd3fadaa6c381f
-rw-r--r--templates/base/_MODULE_/build.gradle.ftl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/base/_MODULE_/build.gradle.ftl b/templates/base/_MODULE_/build.gradle.ftl
index 3842a464..63681a1c 100644
--- a/templates/base/_MODULE_/build.gradle.ftl
+++ b/templates/base/_MODULE_/build.gradle.ftl
@@ -25,6 +25,14 @@ buildscript {
apply plugin: 'android'
+<#if sample.repository?has_content>
+repositories {
+<#list sample.repository as rep>
+ ${rep}
+</#list>
+}
+</#if>
+
dependencies {
<#if !sample.auto_add_support_lib?has_content || sample.auto_add_support_lib == "true">
// Add the support lib that is appropriate for SDK ${sample.minSdk}