diff options
Diffstat (limited to 'templates/projects/NewAndroidApplication/root')
-rw-r--r-- | templates/projects/NewAndroidApplication/root/build.gradle.ftl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/projects/NewAndroidApplication/root/build.gradle.ftl b/templates/projects/NewAndroidApplication/root/build.gradle.ftl index df1ab4a..83b4368 100644 --- a/templates/projects/NewAndroidApplication/root/build.gradle.ftl +++ b/templates/projects/NewAndroidApplication/root/build.gradle.ftl @@ -7,13 +7,21 @@ buildscript { </#if> } dependencies { - classpath 'com.android.tools.build:gradle:0.4' + classpath 'com.android.tools.build:gradle:${gradlePluginVersion}' } } apply plugin: 'android' +repositories { +<#if mavenUrl == "mavenCentral"> + mavenCentral() +<#else> + maven { url '${mavenUrl}' } +</#if> +} + dependencies { - compile files('libs/android-support-v4.jar') + compile 'com.android.support:support-v4:${v4SupportLibraryVersion}' } android { |