mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-26 16:10:11 +08:00
Add gradle configuration "use.maven.local"
This commit is contained in:
parent
8663978d65
commit
da9dd1e353
@ -15,8 +15,10 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
// mavenLocal()
|
||||
// maven(url = "https://mirrors.huaweicloud.com/repository/maven")
|
||||
if (System.getProperty("use.maven.local") == "true") {
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
google()
|
||||
@ -67,8 +69,10 @@ allprojects {
|
||||
version = Versions.project
|
||||
|
||||
repositories {
|
||||
// mavenLocal() // cheching issue cause compiler exception
|
||||
// maven(url = "https://mirrors.huaweicloud.com/repository/maven")
|
||||
if (System.getProperty("use.maven.local") == "true") {
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
google()
|
||||
|
@ -22,3 +22,5 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true
|
||||
gnsp.disableApplyOnlyOnRootProjectEnforcement=true
|
||||
# We may target 15 with Kotlin 1.5 IR
|
||||
mirai.android.target.api.level=24
|
||||
|
||||
systemProp.use.maven.local=false
|
@ -9,6 +9,9 @@
|
||||
|
||||
pluginManagement {
|
||||
repositories {
|
||||
if (System.getProperty("use.maven.local") == "true") {
|
||||
mavenLocal()
|
||||
}
|
||||
// mavenLocal()
|
||||
gradlePluginPortal()
|
||||
mavenCentral()
|
||||
|
Loading…
Reference in New Issue
Block a user