From 482f516c0b4f6a30280846393cc37346a3e98f16 Mon Sep 17 00:00:00 2001 From: cssxsh Date: Sun, 22 May 2022 09:39:49 +0800 Subject: [PATCH] build: 1.3.0 --- build.gradle.kts | 26 ++++++------------- .../gnuf0rce/mirai/debug/DebugHelperPlugin.kt | 2 +- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e8922fe..5a39ec8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,13 +1,13 @@ plugins { - kotlin("jvm") version "1.6.0" - kotlin("plugin.serialization") version "1.6.0" + kotlin("jvm") version "1.6.21" + kotlin("plugin.serialization") version "1.6.21" - id("net.mamoe.mirai-console") version "2.10.0" + id("net.mamoe.mirai-console") version "2.11.0" id("net.mamoe.maven-central-publish") version "0.7.1" } group = "io.github.gnuf0rce" -version = "1.2.3" +version = "1.3.0" mavenCentralPublish { useCentralS01() @@ -15,29 +15,19 @@ mavenCentralPublish { licenseFromGitHubProject("AGPL-3.0", "master") publication { artifact(tasks.getByName("buildPlugin")) + artifact(tasks.getByName("buildPluginLegacy")) } } repositories { mavenLocal() mavenCentral() - gradlePluginPortal() } dependencies { - compileOnly("net.mamoe:mirai-core:2.10.0") - compileOnly("net.mamoe:mirai-core-utils:2.10.0") - testImplementation(kotlin("test", "1.6.0")) -} - -kotlin { - sourceSets { - all { -// languageSettings.useExperimentalAnnotation("net.mamoe.mirai.console.util.ConsoleExperimentalApi") -// languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiInternalApi") -// languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiExperimentalApi") - } - } + compileOnly("net.mamoe:mirai-core:2.11.0") + compileOnly("net.mamoe:mirai-core-utils:2.11.0") + testImplementation(kotlin("test", "1.6.21")) } tasks { diff --git a/src/main/kotlin/io/gnuf0rce/mirai/debug/DebugHelperPlugin.kt b/src/main/kotlin/io/gnuf0rce/mirai/debug/DebugHelperPlugin.kt index 44f4236..6ac0489 100644 --- a/src/main/kotlin/io/gnuf0rce/mirai/debug/DebugHelperPlugin.kt +++ b/src/main/kotlin/io/gnuf0rce/mirai/debug/DebugHelperPlugin.kt @@ -15,7 +15,7 @@ import java.time.* import java.util.zip.* object DebugHelperPlugin : KotlinPlugin( - JvmPluginDescription(id = "io.github.gnuf0rce.debug-helper", version = "1.2.3") { + JvmPluginDescription(id = "io.github.gnuf0rce.debug-helper", version = "1.3.0") { name("debug-helper") author("cssxsh") }