From 2b6bbec1ba0328aa660870876c10075cfa6fc904 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Fri, 5 Dec 2025 17:06:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86build.gradle=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E5=88=B0=E6=8F=90=E4=BA=A4=E7=82=B92f1c4a5=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=95=8F=E6=84=9F=E5=AF=86=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 88 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 56 insertions(+), 32 deletions(-) diff --git a/build.gradle b/build.gradle index 85c9ba69..2ec9de6f 100644 --- a/build.gradle +++ b/build.gradle @@ -5,38 +5,14 @@ buildscript { // 设置本地Maven仓库路径 url 'file:///sdcard/.m2/repository/' } - - // Nexus Maven 库地址 - // "WinBoLL Release" - maven { url "https://nexus.winboll.cc/repository/maven-public/" } - // "WinBoLL Snapshot" - maven { url "https://nexus.winboll.cc/repository/maven-snapshots/" } - - maven { url 'https://maven.aliyun.com/repository/public/' } - maven { url 'https://maven.aliyun.com/repository/google/' } - maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' } - maven { url 'https://dl.bintray.com/ppartisan/maven/' } - maven { url "https://clojars.org/repo/" } - maven { url "https://jitpack.io" } - mavenCentral() - google() - //println "mavenLocal : ===========" - //println mavenLocal().url - //println "mavenLocal : ===========" - //mavenLocal() - } - dependencies { - classpath 'com.android.tools.build:gradle:7.2.1' // 对应 compileSdkVersion 32 - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } -} - -allprojects { - repositories { - mavenLocal { - // 设置本地Maven仓库路径 - url 'file:///sdcard/.m2/repository/' + + //米盟通过maven接入时,要做如下配置 + maven { + url "https://repos.xiaomi.com/maven" + credentials { + username 'mimo-developer' + password 'AKCp8ih1PFG9tV8qaLyws67dLGZi8udFM39SfsHgihN15cgsiRvHuxj8JzFmuZjaViVeNawaA' + } } // Nexus Maven 库地址 @@ -57,6 +33,54 @@ allprojects { //println mavenLocal().url //println "mavenLocal : ===========" //mavenLocal() + + // WinBoLL.CC 紧急备用 Maven 仓库 + maven { url 'https://spare-maven.winboll.cc/repository/' } + } + dependencies { + classpath 'com.android.tools.build:gradle:7.2.1' // 对应 compileSdkVersion 32 + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + mavenLocal { + // 设置本地Maven仓库路径 + url 'file:///sdcard/.m2/repository/' + } + + //米盟通过maven接入时,要做如下配置 + maven { + url "https://repos.xiaomi.com/maven" + credentials { + username 'mimo-developer' + password 'AKCp8ih1PFG9tV8qaLyws67dLGZi8udFM39SfsHgihN15cgsiRvHuxj8JzFmuZjaViVeNawaA' + } + } + + // Nexus Maven 库地址 + // "WinBoLL Release" + maven { url "https://nexus.winboll.cc/repository/maven-public/" } + // "WinBoLL Snapshot" + maven { url "https://nexus.winboll.cc/repository/maven-snapshots/" } + + maven { url 'https://maven.aliyun.com/repository/public/' } + maven { url 'https://maven.aliyun.com/repository/google/' } + maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' } + maven { url 'https://dl.bintray.com/ppartisan/maven/' } + maven { url "https://clojars.org/repo/" } + maven { url "https://jitpack.io" } + mavenCentral() + google() + //println "mavenLocal : ===========" + //println mavenLocal().url + //println "mavenLocal : ===========" + //mavenLocal() + + // WinBoLL.CC 紧急备用 Maven 仓库 + maven { url 'https://spare-maven.winboll.cc/repository/' } } ext { // 定义全局变量,常用于版本管理