更新 Maven 库引用方案
This commit is contained in:
parent
2a11205468
commit
42256fd0e4
28
build.gradle
28
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user