From 42256fd0e4b4a3f736c59b43e244a407ff5ae519 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Mon, 12 May 2025 03:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Maven=20=E5=BA=93=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index fd84a8f..4aa3128 100644 --- a/build.gradle +++ b/build.gradle @@ -1,21 +1,12 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { - // 本地 Maven 仓库(默认路径为 ~/.m2/repository) - println "mavenLocal : ===========" - println mavenLocal().url - println "mavenLocal : ===========" - mavenLocal() - - // 或自定义本地仓库路径 - maven { url "file:///sdcard/.aide/maven/" } - // 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/' } @@ -24,7 +15,10 @@ buildscript { maven { url "https://jitpack.io" } mavenCentral() google() - //mavenLocal() + println "mavenLocal : ===========" + println mavenLocal().url + println "mavenLocal : ===========" + mavenLocal() } dependencies { classpath 'com.android.tools.build:gradle:7.2.1' // 对应 compileSdkVersion 32 @@ -35,15 +29,6 @@ buildscript { allprojects { repositories { - // 本地 Maven 仓库(默认路径为 ~/.m2/repository) - println "mavenLocal : ===========" - println mavenLocal().url - println "mavenLocal : ===========" - mavenLocal() - - // 或自定义本地仓库路径 - maven { url "file:///sdcard/.aide/maven/" } - // Nexus Maven 库地址 // "WinBoLL Release" maven { url "https://nexus.winboll.cc/repository/maven-public/" } @@ -58,6 +43,9 @@ allprojects { maven { url "https://jitpack.io" } mavenCentral() google() + println "mavenLocal : ===========" + println mavenLocal().url + println "mavenLocal : ===========" mavenLocal() } ext {