Fix maven repositories bug

This commit is contained in:
mrezai 2016-01-09 16:51:22 +03:30
parent dbdce7d6f5
commit 50cbe736de
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$$
}
}