diff options
author | Scott Barta <sbarta@google.com> | 2013-06-26 17:18:00 -0700 |
---|---|---|
committer | Scott Barta <sbarta@google.com> | 2013-07-02 11:08:31 -0700 |
commit | 8cd01808004369a5144d55e597d4a07b11c86b75 (patch) | |
tree | fb56ddd19e8803a530b9c3fc0c4260e79f656629 /templates/projects/NewAndroidApplication/root | |
parent | a782925de572285c66c17e15bc82191f3ce6dd6c (diff) | |
download | sdk-8cd01808004369a5144d55e597d4a07b11c86b75.zip sdk-8cd01808004369a5144d55e597d4a07b11c86b75.tar.gz sdk-8cd01808004369a5144d55e597d4a07b11c86b75.tar.bz2 |
Fixes to Gradle plugin, support library versions
Small fixes to pass the Gradle Android plugin as a dependency.
Changes the v4 support library depencency to pull in a Maven
artifact instead of a library jar reference.
Adds a small fix to ensure the Java package parameter in new
projects is nonempty.
Change-Id: Icb3e3a704166c8d03a7996872be6a5082d37e1bb
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 { |