From 0ad2cec71a99cd732e5b10cc7a51e5c982d80e28 Mon Sep 17 00:00:00 2001 From: ForteScarlet Date: Sat, 17 Aug 2024 21:13:55 +0800 Subject: [PATCH] release: v4.0.0 --- CHANGELOG.md | 17 ++++++++++++ buildSrc/src/main/kotlin/P.kt | 21 ++------------- .../kotlin/changelog/GenerateChangelog.kt | 5 +--- ...simbot-kook-changelog-generator.gradle.kts | 27 ------------------- 4 files changed, 20 insertions(+), 50 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf0a0c23..e722015c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +# v4.0.0 + +> Release & Pull Notes: [v4.0.0](https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.0) + +- feat(core): KookBot 支持根据引用查询消息内容的相关API ([`98a7fc1..500491e`](https://github.com/simple-robot/simpler-robot/compare/98a7fc1..8e460f6)) + +
98a7fc1..500491e + + - [`98a7fc1`](https://github.com/simple-robot/simpler-robot/commit/98a7fc1) + - [`500491e`](https://github.com/simple-robot/simpler-robot/commit/500491e) + +
+ +- feat(core): KookMessageContent 支持根据引用查询消息内容的相关API ([`8e460f6`](https://github.com/simple-robot/simpler-robot/commit/8e460f6)) +- build(deps): Update Kotlin to 2.0.10, simbot to 4.6.0 ([`f81d7e7`](https://github.com/simple-robot/simpler-robot/commit/f81d7e7)) +- build(deps): bump ksp from 2.0.0-1.0.24 to 2.0.10-1.0.24 ([`11bfb0c`](https://github.com/simple-robot/simpler-robot/commit/11bfb0c)) + # v4.0.0-beta6 > Release & Pull Notes: [v4.0.0-beta6](https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.0-beta6) diff --git a/buildSrc/src/main/kotlin/P.kt b/buildSrc/src/main/kotlin/P.kt index 23882083..410b45f3 100644 --- a/buildSrc/src/main/kotlin/P.kt +++ b/buildSrc/src/main/kotlin/P.kt @@ -23,23 +23,6 @@ import love.forte.gradle.common.core.project.ProjectDetail import love.forte.gradle.common.core.property.systemProp -/* -* Copyright (c) 2022-2022 ForteScarlet -* -* 本文件是 simbot-component-kook 的一部分。 -* -* simbot-component-kook 是自由软件:你可以再分发之和/或依照由自由软件基金会发布的 GNU 通用公共许可证修改之,无论是版本 3 许可证,还是(按你的决定)任何以后版都可以。 -* -* 发布 simbot-component-kook 是希望它能有用,但是并无保障;甚至连可销售和符合某个特定的目的都不保证。请参看 GNU 通用公共许可证,了解详情。 -* -* 你应该随程序获得一份 GNU 通用公共许可证的复本。如果没有,请看: -* https://www.gnu.org/licenses -* https://www.gnu.org/licenses/gpl-3.0-standalone.html -* https://www.gnu.org/licenses/lgpl-3.0-standalone.html -* -* -*/ - object P : ProjectDetail() { const val GROUP = "love.forte.simbot.component" @@ -49,8 +32,8 @@ object P : ProjectDetail() { override val homepage: String get() = HOMEPAGE - const val VERSION = "4.0.0-beta6" - const val NEXT_VERSION = "4.0.0-beta7" + const val VERSION = "4.0.0" + const val NEXT_VERSION = "4.0.1" override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT" override val version = if (isSnapshot()) snapshotVersion else VERSION diff --git a/buildSrc/src/main/kotlin/changelog/GenerateChangelog.kt b/buildSrc/src/main/kotlin/changelog/GenerateChangelog.kt index e7bb7dc4..c2b5e484 100644 --- a/buildSrc/src/main/kotlin/changelog/GenerateChangelog.kt +++ b/buildSrc/src/main/kotlin/changelog/GenerateChangelog.kt @@ -50,12 +50,9 @@ fun Project.generateChangelog(tag: String) { file.writeText( """ + > [!note] > 对应核心版本: [**v$coreVersion**](https://github.com/simple-robot/simpler-robot/releases/tag/v$coreVersion) - > [!warning] - > 目前版本尚处于 **`beta`** 阶段,代表仍然可能存在部分已知问题或未知问题, - > 以及尚未完善的内容和落后于官方更新的内容。 - 我们欢迎并期望着您的 [反馈](https://github.com/simple-robot/simbot-component-kook/issues) 或 [协助](https://github.com/simple-robot/simbot-component-kook/pulls),感谢您的贡献与支持! """.trimIndent() diff --git a/buildSrc/src/main/kotlin/simbot-kook-changelog-generator.gradle.kts b/buildSrc/src/main/kotlin/simbot-kook-changelog-generator.gradle.kts index e7745e6f..2f702942 100644 --- a/buildSrc/src/main/kotlin/simbot-kook-changelog-generator.gradle.kts +++ b/buildSrc/src/main/kotlin/simbot-kook-changelog-generator.gradle.kts @@ -25,33 +25,6 @@ tasks.create("createChangelog") { group = "documentation" doFirst { generateChangelog("v${P.version}") -// println("Generate change log for $version ...") -// // configurations.runtimeClasspath -// val changelogDir = rootProject.file(".changelog").also { -// it.mkdirs() -// } -// val file = File(changelogDir, "$version.md") -// if (!file.exists()) { -// file.createNewFile() -// val coreVersion = simbotVersion.toString() -// val autoGenerateText = """ -// -// **部分依赖库版本参考** -// -// | **库** | **版本** | -// |---------|--------| -// | 核心库 | [**v$coreVersion**](https://github.com/ForteScarlet/simpler-robot/releases/tag/v$coreVersion) | -// -// > **Warning** -// 当前版本处于 **`ALPHA`**阶段,仍旧有很多[**已知问题**](https://github.com/simple-robot/simbot-component-kook/issues/)和可能存在的**潜在问题**, -// 如有发现问题请积极[反馈](https://github.com/simple-robot/simbot-component-kook/issues/)或 [协助我们解决](https://github.com/simple-robot/simbot-component-kook/pulls),非常感谢! -// -// -// """.trimIndent() -// -// -// file.writeText(autoGenerateText) -// } } }