Ver código fonte

修改构建apk maven下载源

panxingxin 5 anos atrás
pai
commit
94e8152cc9

+ 8 - 4
platforms/android/CordovaLib/build.gradle

@@ -24,8 +24,10 @@ ext {
 
 buildscript {
     repositories {
-        google()
-        jcenter()
+        // google()
+        // jcenter()
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
     }
 
     dependencies {
@@ -39,8 +41,10 @@ buildscript {
 
 allprojects {
     repositories {
-        google()
-        jcenter()
+        // google()
+        // jcenter()
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
     }
 }
 

+ 8 - 6
platforms/android/build.gradle

@@ -20,9 +20,10 @@
 
 buildscript {
     repositories {
-        google()
-        jcenter()
-  maven{ url 'https://maven.aliyun.com/repository/google' }
+        // google()
+        // jcenter()
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
     }
 
     dependencies {
@@ -40,9 +41,10 @@ configurations.all {
 }
 allprojects {
     repositories {
-        google()
-        maven{ url 'https://maven.aliyun.com/repository/google' }
-        jcenter()
+        // google()
+        // jcenter()
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+         maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
     }
 
     //This replaces project.properties w.r.t. build settings