diff --git a/build.gradle.kts b/build.gradle.kts index e1e90c3cd..895b36f96 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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() diff --git a/gradle.properties b/gradle.properties index 9acc1ce11..5f3ba4fbb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index cc6706219..b4143413e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -9,6 +9,9 @@ pluginManagement { repositories { + if (System.getProperty("use.maven.local") == "true") { + mavenLocal() + } // mavenLocal() gradlePluginPortal() mavenCentral()