summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-09 15:32:42 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-09 15:32:42 +0100
commit9e143a52ba93243da55d425bd5dd3b9110d6bc2e (patch)
tree1ec5120a2f447610c9381b6d88574f5fdf79b8cd
parentdbdce7d6f53c2a7b0d6294097e4b8e6712a34403 (diff)
parent50cbe736def293ef7eebecc213895d07fdacf138 (diff)
Merge pull request #3291 from mrezai/fix-gradle-repositories
Fix maven repositories bug
-rw-r--r--platform/android/SCsub7
-rw-r--r--platform/android/build.gradle.template4
2 files changed, 6 insertions, 5 deletions
diff --git a/platform/android/SCsub b/platform/android/SCsub
index 30cb9d9660..3d645de38f 100644
--- a/platform/android/SCsub
+++ b/platform/android/SCsub
@@ -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=""
diff --git a/platform/android/build.gradle.template b/platform/android/build.gradle.template
index e78ee6ae34..9461cd2e99 100644
--- a/platform/android/build.gradle.template
+++ b/platform/android/build.gradle.template
@@ -12,9 +12,7 @@ apply plugin: 'com.android.application'
allprojects {
repositories {
mavenCentral()
- maven {
- $$GRADLE_REPOSITORY_URLS$$
- }
+ $$GRADLE_REPOSITORY_URLS$$
}
}