diff --git a/build.gradle.kts b/build.gradle.kts index 1ba94b0..3d6e400 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,12 +2,12 @@ plugins { kotlin("jvm") version "1.6.21" kotlin("plugin.serialization") version "1.6.21" - id("net.mamoe.mirai-console") version "2.11.1" + id("net.mamoe.mirai-console") version "2.12.0" id("net.mamoe.maven-central-publish") version "0.7.1" } group = "xyz.cssxsh" -version = "1.5.2" +version = "1.5.3" mavenCentralPublish { useCentralS01() @@ -25,22 +25,12 @@ repositories { } dependencies { - implementation("io.ktor:ktor-client-core:2.0.2") { + implementation("io.ktor:ktor-client-okhttp:2.0.3") { exclude(group = "org.jetbrains.kotlin") exclude(group = "org.jetbrains.kotlinx") exclude(group = "org.slf4j") } - implementation("io.ktor:ktor-client-okhttp:2.0.2") { - exclude(group = "org.jetbrains.kotlin") - exclude(group = "org.jetbrains.kotlinx") - exclude(group = "org.slf4j") - } - implementation("io.ktor:ktor-client-auth:2.0.2") { - exclude(group = "org.jetbrains.kotlin") - exclude(group = "org.jetbrains.kotlinx") - exclude(group = "org.slf4j") - } - implementation("io.ktor:ktor-client-encoding:2.0.2") { + implementation("io.ktor:ktor-client-encoding:2.0.3") { exclude(group = "org.jetbrains.kotlin") exclude(group = "org.jetbrains.kotlinx") exclude(group = "org.slf4j") @@ -52,16 +42,13 @@ dependencies { } implementation("org.jclarion:image4j:0.7") implementation("org.apache.commons:commons-text:1.9") - compileOnly("net.mamoe:mirai-core-utils:2.11.1") + compileOnly("net.mamoe:mirai-core-utils:2.12.0") testImplementation("net.mamoe.yamlkt:yamlkt-jvm:0.10.2") testImplementation(kotlin("test", "1.6.21")) } tasks { - compileKotlin { - kotlinOptions.freeCompilerArgs += "-Xunrestricted-builder-inference" - } test { useJUnitPlatform() } diff --git a/src/main/kotlin/xyz/cssxsh/mirai/weibo/WeiboHelperPlugin.kt b/src/main/kotlin/xyz/cssxsh/mirai/weibo/WeiboHelperPlugin.kt index ae0a3a2..7512ce5 100644 --- a/src/main/kotlin/xyz/cssxsh/mirai/weibo/WeiboHelperPlugin.kt +++ b/src/main/kotlin/xyz/cssxsh/mirai/weibo/WeiboHelperPlugin.kt @@ -13,7 +13,7 @@ import xyz.cssxsh.mirai.weibo.command.* import xyz.cssxsh.mirai.weibo.data.* object WeiboHelperPlugin : KotlinPlugin( - JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.5.2") { + JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.5.3") { name("weibo-helper") author("cssxsh") }