diff options
author | Siva Velusamy <vsiva@google.com> | 2013-05-13 22:08:38 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2013-05-13 22:08:38 -0700 |
commit | 70bd0e1d50b88876b3ff4290fde4356434244883 (patch) | |
tree | cbe8f62c92fcba5dbf454fed7e00119ef5ca3439 /templates/projects/NewAndroidApplication | |
parent | 31a08d03a1ed0a9aeed1e329ee5e58fef4016627 (diff) | |
download | sdk-70bd0e1d50b88876b3ff4290fde4356434244883.zip sdk-70bd0e1d50b88876b3ff4290fde4356434244883.tar.gz sdk-70bd0e1d50b88876b3ff4290fde4356434244883.tar.bz2 |
Use "mavenCentral()" in build.gradle instead of URL
Change-Id: Ibb3391a7b1de26baa2492280f542520b2202569e
Diffstat (limited to 'templates/projects/NewAndroidApplication')
-rw-r--r-- | templates/projects/NewAndroidApplication/globals.xml.ftl | 2 | ||||
-rw-r--r-- | templates/projects/NewAndroidApplication/root/build.gradle.ftl | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/projects/NewAndroidApplication/globals.xml.ftl b/templates/projects/NewAndroidApplication/globals.xml.ftl index 8c419d8..29bae5a 100644 --- a/templates/projects/NewAndroidApplication/globals.xml.ftl +++ b/templates/projects/NewAndroidApplication/globals.xml.ftl @@ -6,6 +6,6 @@ <global id="manifestOut" value="." /> <global id="srcOut" value="src/${slashedPackageName(packageName)}" /> <global id="resOut" value="res" /> - <global id="mavenUrl" value="http://repo1.maven.org/maven2" /> + <global id="mavenUrl" value="mavenCentral" /> <global id="buildToolsVersion" value="${buildApi}" /> </globals> diff --git a/templates/projects/NewAndroidApplication/root/build.gradle.ftl b/templates/projects/NewAndroidApplication/root/build.gradle.ftl index 4a098cd..df1ab4a 100644 --- a/templates/projects/NewAndroidApplication/root/build.gradle.ftl +++ b/templates/projects/NewAndroidApplication/root/build.gradle.ftl @@ -1,6 +1,10 @@ buildscript { repositories { +<#if mavenUrl == "mavenCentral"> + mavenCentral() +<#else> maven { url '${mavenUrl}' } +</#if> } dependencies { classpath 'com.android.tools.build:gradle:0.4' |