diff --git a/backend/mirai-console/build.gradle.kts b/backend/mirai-console/build.gradle.kts index 7f6f441b3..d2217b868 100644 --- a/backend/mirai-console/build.gradle.kts +++ b/backend/mirai-console/build.gradle.kts @@ -66,7 +66,7 @@ dependencies { implementation(kotlinx("serialization-core", Versions.serialization)) implementation(kotlin("reflect")) - implementation("net.mamoe.yamlkt:yamlkt:0.5.0") + implementation("net.mamoe.yamlkt:yamlkt:${Versions.yamlkt}") implementation("org.jetbrains.kotlinx:atomicfu:${Versions.atomicFU}") api("org.jetbrains:annotations:19.0.0") api(kotlinx("coroutines-jdk8", Versions.coroutines)) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/PluginDataImpl.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/PluginDataImpl.kt index d7f364eba..d85a1078b 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/PluginDataImpl.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/PluginDataImpl.kt @@ -93,7 +93,7 @@ internal abstract class PluginDataImpl { // val vSerializer = dataUpdaterSerializerTypeArguments[1] as KSerializer valueNodes.forEach { (valueName, _, valueSerializer) -> - encodeSerializableElement(descriptor, index++, String.serializer(), valueName) + encodeStringElement(descriptor, index++, valueName) encodeSerializableElement(descriptor, index++, valueSerializer, Unit) } endStructure(descriptor) diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index c46a4c9c0..72e837398 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -36,5 +36,6 @@ object Versions { const val bintray = "1.8.5" - const val blockingBridge = "1.0.3" + const val blockingBridge = "1.0.5" + const val yamlkt = "0.5.1" } \ No newline at end of file