Merge pull request #3291 from mrezai/fix-gradle-repositories

Fix maven repositories bug
This commit is contained in:
Rémi Verschelde 2016-01-09 15:32:42 +01:00
commit 9e143a52ba
2 changed files with 6 additions and 5 deletions

View file

@ -45,8 +45,11 @@ gradle_text = gradle_basein.read()
gradle_maven_repos_text=""
for x in env.android_maven_repos:
gradle_maven_repos_text+=x+"\n"
if len(env.android_maven_repos) > 0:
gradle_maven_repos_text+="maven {\n"
for x in env.android_maven_repos:
gradle_maven_repos_text+="\t\t"+x+"\n"
gradle_maven_repos_text+="\t}\n"
gradle_maven_dependencies_text=""

View file

@ -12,9 +12,7 @@ apply plugin: 'com.android.application'
allprojects {
repositories {
mavenCentral()
maven {
$$GRADLE_REPOSITORY_URLS$$
}
$$GRADLE_REPOSITORY_URLS$$
}
}