From 4f53312586de62f26aaa37cb4775787bcd3ced11 Mon Sep 17 00:00:00 2001 From: cssxsh Date: Tue, 9 May 2023 17:01:25 +0800 Subject: [PATCH] build: 1.2.0 --- build.gradle.kts | 14 ++++++++------ .../xyz/cssxsh/mirai/device/MiraiDevicePlugin.kt | 5 +++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index bbd7eca..a4f92fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,13 +1,13 @@ plugins { - kotlin("jvm") version "1.7.10" - kotlin("plugin.serialization") version "1.7.10" + kotlin("jvm") version "1.7.22" + kotlin("plugin.serialization") version "1.7.22" - id("net.mamoe.mirai-console") version "2.12.3" + id("net.mamoe.mirai-console") version "2.15.0-M1" id("me.him188.maven-central-publish") version "1.0.0-dev-3" } group = "xyz.cssxsh.mirai" -version = "1.1.3" +version = "1.2.0" mavenCentralPublish { useCentralS01() @@ -26,9 +26,11 @@ repositories { } dependencies { - compileOnly("net.mamoe:mirai-core-utils:2.12.3") - testImplementation(kotlin("test")) + // + implementation(platform("net.mamoe:mirai-bom:2.15.0-M1")) + compileOnly("net.mamoe:mirai-core-utils") + compileOnly("net.mamoe:mirai-console-compiler-common") } kotlin { diff --git a/src/main/kotlin/xyz/cssxsh/mirai/device/MiraiDevicePlugin.kt b/src/main/kotlin/xyz/cssxsh/mirai/device/MiraiDevicePlugin.kt index 4ed4ba5..6c86cf0 100644 --- a/src/main/kotlin/xyz/cssxsh/mirai/device/MiraiDevicePlugin.kt +++ b/src/main/kotlin/xyz/cssxsh/mirai/device/MiraiDevicePlugin.kt @@ -6,11 +6,12 @@ import net.mamoe.mirai.console.extension.* import net.mamoe.mirai.console.plugin.jvm.* import net.mamoe.mirai.event.* -public object MiraiDevicePlugin : KotlinPlugin( +@PublishedApi +internal object MiraiDevicePlugin : KotlinPlugin( JvmPluginDescription( id = "xyz.cssxsh.mirai.mirai-device-generator", name = "mirai-device-generator", - version = "1.1.3", + version = "1.2.0", ) { author("cssxsh") }