Browse Source

修改构建apk maven下载源

panxingxin 5 năm trước cách đây
mục cha
commit
94e8152cc9
2 tập tin đã thay đổi với 16 bổ sung10 xóa
  1. 8 4
      platforms/android/CordovaLib/build.gradle
  2. 8 6
      platforms/android/build.gradle

+ 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