From 52e76af109acf87d5bdb22941260f16debca5674 Mon Sep 17 00:00:00 2001 From: CaoMeiYouRen <996881204@qq.com> Date: Sun, 22 Oct 2023 01:19:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20=E5=92=8C=20mirai-a?= =?UTF-8?q?pi-http=20=E5=86=B2=E7=AA=81=E7=9A=84=20net.mamoe.yamlkt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildSrc/settings.gradle.kts | 6 ++++++ buildSrc/src/main/kotlin/Versions.kt | 2 +- onebot-mirai/build.gradle.kts | 2 +- .../com/github/yyuueexxiinngg/onebot/PluginSettings.kt | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 buildSrc/settings.gradle.kts diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts new file mode 100644 index 0000000..f5dc451 --- /dev/null +++ b/buildSrc/settings.gradle.kts @@ -0,0 +1,6 @@ +pluginManagement { + repositories { + maven(url = "https://mirrors.huaweicloud.com/repository/maven") + gradlePluginPortal() + } +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 48eadef..bd5c292 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -2,7 +2,7 @@ import java.io.File import java.util.concurrent.TimeUnit object Versions { - const val projectVersion = "0.3.4" + const val projectVersion = "0.3.5" const val miraiCoreVersion = "2.4.0" const val miraiConsoleVersion = "2.4.0" diff --git a/onebot-mirai/build.gradle.kts b/onebot-mirai/build.gradle.kts index 9d255ae..aba1f9d 100644 --- a/onebot-mirai/build.gradle.kts +++ b/onebot-mirai/build.gradle.kts @@ -18,7 +18,7 @@ dependencies { compileOnly(kotlin("serialization", Versions.kotlinVersion)) compileOnly("com.google.auto.service", "auto-service-annotations", Versions.autoService) - implementation("net.mamoe.yamlkt:yamlkt:${Versions.yamlkt}") + // implementation("net.mamoe.yamlkt:yamlkt:${Versions.yamlkt}") implementation(kotlin("reflect", Versions.kotlinVersion)) implementation(kotlinx("serialization-cbor", Versions.kotlinSerializationVersion)) implementation(kotlinx("serialization-json", Versions.kotlinSerializationVersion)) diff --git a/onebot-mirai/src/main/kotlin/com/github/yyuueexxiinngg/onebot/PluginSettings.kt b/onebot-mirai/src/main/kotlin/com/github/yyuueexxiinngg/onebot/PluginSettings.kt index 817b9b8..76f05b9 100644 --- a/onebot-mirai/src/main/kotlin/com/github/yyuueexxiinngg/onebot/PluginSettings.kt +++ b/onebot-mirai/src/main/kotlin/com/github/yyuueexxiinngg/onebot/PluginSettings.kt @@ -4,7 +4,7 @@ import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import net.mamoe.mirai.console.data.AutoSavePluginConfig import net.mamoe.mirai.console.data.value -import net.mamoe.yamlkt.Comment +// import net.mamoe.yamlkt.Comment object PluginSettings : AutoSavePluginConfig("settings") { var proxy by value("") @@ -44,7 +44,7 @@ object PluginSettings : AutoSavePluginConfig("settings") { var postUrl: String = "", var postMessageFormat: String = "string", var secret: String = "", - @Comment("上报超时时间, 单位毫秒, 须大于0才会生效") + // @Comment("上报超时时间, 单位毫秒, 须大于0才会生效") var timeout: Long = 0L )