mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-28 00:20:14 +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 {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
// mavenLocal()
|
if (System.getProperty("use.maven.local") == "true") {
|
||||||
// maven(url = "https://mirrors.huaweicloud.com/repository/maven")
|
mavenLocal()
|
||||||
|
}
|
||||||
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
google()
|
google()
|
||||||
@ -67,8 +69,10 @@ allprojects {
|
|||||||
version = Versions.project
|
version = Versions.project
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
// mavenLocal() // cheching issue cause compiler exception
|
if (System.getProperty("use.maven.local") == "true") {
|
||||||
// maven(url = "https://mirrors.huaweicloud.com/repository/maven")
|
mavenLocal()
|
||||||
|
}
|
||||||
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
google()
|
google()
|
||||||
|
@ -22,3 +22,5 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true
|
|||||||
gnsp.disableApplyOnlyOnRootProjectEnforcement=true
|
gnsp.disableApplyOnlyOnRootProjectEnforcement=true
|
||||||
# We may target 15 with Kotlin 1.5 IR
|
# We may target 15 with Kotlin 1.5 IR
|
||||||
mirai.android.target.api.level=24
|
mirai.android.target.api.level=24
|
||||||
|
|
||||||
|
systemProp.use.maven.local=false
|
@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
|
if (System.getProperty("use.maven.local") == "true") {
|
||||||
|
mavenLocal()
|
||||||
|
}
|
||||||
// mavenLocal()
|
// mavenLocal()
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
Loading…
Reference in New Issue
Block a user