From 3ae6c2802e9cf9a94fe5f169fa24466e21a49058 Mon Sep 17 00:00:00 2001
From: Him188 <Him188@mamoe.net>
Date: Sat, 20 Aug 2022 16:19:40 +0800
Subject: [PATCH] [console] Change Aliyun public repository to central
 respiratory. Fix #2184

---
 docs/ConfiguringProjects.md                                 | 2 +-
 .../src/internal/data/builtins/PluginDependenciesConfig.kt  | 2 +-
 mirai-console/docs/Run.md                                   | 6 +++---
 mirai-console/tools/compiler-common/build.gradle.kts        | 2 +-
 mirai-console/tools/intellij-plugin/build.gradle.kts        | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/docs/ConfiguringProjects.md b/docs/ConfiguringProjects.md
index ddfad9368..1440a54b1 100644
--- a/docs/ConfiguringProjects.md
+++ b/docs/ConfiguringProjects.md
@@ -137,6 +137,6 @@ dependencies {
 
 非常不推荐这种方法,请尽可能使用构建工具。
 
-在 [Maven Central](https://repo.maven.apache.org/maven2/net/mamoe/mirai-core-all/) 或 [阿里云代理仓库](https://maven.aliyun.com/repository/public/net/mamoe/mirai-core-all/) 下载指定版本的 `-all.jar` 文件,即包含 `mirai-core`,`mirai-core-api`,`mirai-core-utils` 和其他依赖。
+在 [Maven Central](https://repo.maven.apache.org/maven2/net/mamoe/mirai-core-all/) 或 [阿里云代理仓库](https://maven.aliyun.com/repository/central/net/mamoe/mirai-core-all/) 下载指定版本的 `-all.jar` 文件,即包含 `mirai-core`,`mirai-core-api`,`mirai-core-utils` 和其他依赖。
 
 > [回到 Mirai 文档索引](README.md#jvm-平台-mirai-开发)
diff --git a/mirai-console/backend/mirai-console/src/internal/data/builtins/PluginDependenciesConfig.kt b/mirai-console/backend/mirai-console/src/internal/data/builtins/PluginDependenciesConfig.kt
index ad85947b5..f8f5a04ab 100644
--- a/mirai-console/backend/mirai-console/src/internal/data/builtins/PluginDependenciesConfig.kt
+++ b/mirai-console/backend/mirai-console/src/internal/data/builtins/PluginDependenciesConfig.kt
@@ -16,5 +16,5 @@ import net.mamoe.mirai.console.data.value
 @Suppress("RemoveExplicitTypeArguments")
 internal class PluginDependenciesConfig : ReadOnlyPluginConfig("PluginDependencies") {
     @ValueDescription("远程仓库, 如无必要无需修改")
-    val repoLoc by value(listOf<String>("https://maven.aliyun.com/repository/public"))
+    val repoLoc by value(listOf<String>("https://maven.aliyun.com/repository/central"))
 }
\ No newline at end of file
diff --git a/mirai-console/docs/Run.md b/mirai-console/docs/Run.md
index ca398ffb2..7260b51f2 100644
--- a/mirai-console/docs/Run.md
+++ b/mirai-console/docs/Run.md
@@ -83,15 +83,15 @@ PluginManager.INSTANCE.enablePlugin(Plugin.INSTANCE)
 
 # Download mirai-core-all
 
-curl -L https://maven.aliyun.com/repository/public/net/mamoe/mirai-core-all/1.3.3/mirai-core-all-1.3.3-all.jar -o mirai-core-all-1.3.3.jar
+curl -L https://maven.aliyun.com/repository/central/net/mamoe/mirai-core-all/1.3.3/mirai-core-all-1.3.3-all.jar -o mirai-core-all-1.3.3.jar
 
 # Download mirai-console
 
-curl -L https://maven.aliyun.com/repository/public/net/mamoe/mirai-console/1.0.0/mirai-console-1.0.0-all.jar -o mirai-console-1.0.0.jar
+curl -L https://maven.aliyun.com/repository/central/net/mamoe/mirai-console/1.0.0/mirai-console-1.0.0-all.jar -o mirai-console-1.0.0.jar
 
 # Download mirai-console-terminal
 
-curl -L https://maven.aliyun.com/repository/public/net/mamoe/mirai-console-terminal/1.0.0/mirai-console-terminal-1.0.0-all.jar -o mirai-console-terminal-1.0.0.jar
+curl -L https://maven.aliyun.com/repository/central/net/mamoe/mirai-console-terminal/1.0.0/mirai-console-terminal-1.0.0-all.jar -o mirai-console-terminal-1.0.0.jar
 
 ```
 
diff --git a/mirai-console/tools/compiler-common/build.gradle.kts b/mirai-console/tools/compiler-common/build.gradle.kts
index 4b8ce466c..acced02aa 100644
--- a/mirai-console/tools/compiler-common/build.gradle.kts
+++ b/mirai-console/tools/compiler-common/build.gradle.kts
@@ -16,7 +16,7 @@ plugins {
 }
 
 repositories {
-    maven("https://maven.aliyun.com/repository/public")
+    maven("https://maven.aliyun.com/repository/central")
 }
 
 version = Versions.console
diff --git a/mirai-console/tools/intellij-plugin/build.gradle.kts b/mirai-console/tools/intellij-plugin/build.gradle.kts
index 9c528cb6f..561e9f0cb 100644
--- a/mirai-console/tools/intellij-plugin/build.gradle.kts
+++ b/mirai-console/tools/intellij-plugin/build.gradle.kts
@@ -18,7 +18,7 @@ plugins {
 }
 
 repositories {
-    maven("https://maven.aliyun.com/repository/public") // IntelliJ dependencies are very large (>500MB)
+    maven("https://maven.aliyun.com/repository/central") // IntelliJ dependencies are very large (>500MB)
     mavenCentral()
 }