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 )