设置 Gradle 编译时的本地 Maven 库路径

This commit is contained in:
ZhanGSKen 2025-05-12 18:03:14 +08:00
parent 9bd4c41b75
commit 0a993ccb9b
3 changed files with 21 additions and 12 deletions

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Wed May 07 11:59:55 GMT 2025
#Mon May 12 09:58:02 GMT 2025
stageCount=1
libraryProject=libaes
baseVersion=15.6
publishVersion=15.6.0
buildCount=12
buildCount=33
baseBetaVersion=15.6.1

View File

@ -1,6 +1,10 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenLocal {
// Maven仓库路径
url 'file:///sdcard/.m2/repository/'
}
// Nexus Maven
// "WinBoLL Release"
maven { url "https://nexus.winboll.cc/repository/maven-public/" }
@ -15,10 +19,10 @@ buildscript {
maven { url "https://jitpack.io" }
mavenCentral()
google()
println "mavenLocal : ==========="
println mavenLocal().url
println "mavenLocal : ==========="
mavenLocal()
//println "mavenLocal : ==========="
//println mavenLocal().url
//println "mavenLocal : ==========="
//mavenLocal()
// WinBoLL.CC Maven
maven { url 'https://spare-maven.winboll.cc/repository/' }
@ -32,6 +36,11 @@ buildscript {
allprojects {
repositories {
mavenLocal {
// Maven仓库路径
url 'file:///sdcard/.m2/repository/'
}
// Nexus Maven
// "WinBoLL Release"
maven { url "https://nexus.winboll.cc/repository/maven-public/" }
@ -46,10 +55,10 @@ allprojects {
maven { url "https://jitpack.io" }
mavenCentral()
google()
println "mavenLocal : ==========="
println mavenLocal().url
println "mavenLocal : ==========="
mavenLocal()
//println "mavenLocal : ==========="
//println mavenLocal().url
//println "mavenLocal : ==========="
//mavenLocal()
// WinBoLL.CC Maven
maven { url 'https://spare-maven.winboll.cc/repository/' }

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Wed May 07 11:59:55 GMT 2025
#Mon May 12 09:58:02 GMT 2025
stageCount=1
libraryProject=libaes
baseVersion=15.6
publishVersion=15.6.0
buildCount=12
buildCount=33
baseBetaVersion=15.6.1