Skip to content

Commit 9a763a3

Browse files
committed
release: v4.1.0
1 parent 3ec6de7 commit 9a763a3

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

.changelog/v4.1.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
| 依赖 | 版本 |
2+
| ---: | :--- |
3+
| Kotlin | **v2.1.20** |
4+
| simbot核心库 | [**v4.12.0**](https://github.com/simple-robot/simpler-robot/releases/tag/v4.12.0) |
5+
6+
我们欢迎并期望着您的 [反馈](https://github.com/simple-robot/simbot-component-kook/issues)[协助](https://github.com/simple-robot/simbot-component-kook/pulls),感谢您的贡献与支持!

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
# v4.0.2
1+
# v4.1.0
22

3-
> Release & Pull Notes: [v4.0.2](https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.2)
3+
> Release & Pull Notes: [v4.1.0](https://github.com/simple-robot/simpler-robot/releases/tag/v4.1.0)
44
5-
- fix(core): 修复事件中接收的 MessageContent 中, `referenceMessage` 的行为与 `reference` 不一致,会错误地获取自身消息详情而非引用消息详情的问题 ([`517e442`](https://github.com/simple-robot/simpler-robot/commit/517e442))
5+
- build(deps): bump org.jetbrains:annotations from 26.0.1 to 26.0.2 ([`5297dda`](https://github.com/simple-robot/simpler-robot/commit/5297dda))
6+
- build(deps): bump log4j from 2.24.2 to 2.24.3 ([`f95ba57`](https://github.com/simple-robot/simpler-robot/commit/f95ba57))
7+
- build(deps): bump log4j from 2.24.1 to 2.24.2 ([`56644dd`](https://github.com/simple-robot/simpler-robot/commit/56644dd))
8+
- build(deps): bump com.squareup:kotlinpoet-ksp from 1.18.1 to 2.0.0 ([`5cbce0a`](https://github.com/simple-robot/simpler-robot/commit/5cbce0a))
9+
- build(deps): bump org.jetbrains:annotations from 24.1.0 to 26.0.1 ([`ba3948a`](https://github.com/simple-robot/simpler-robot/commit/ba3948a))
10+
- build(deps): bump log4j from 2.23.0 to 2.24.1 ([`8e19f2c`](https://github.com/simple-robot/simpler-robot/commit/8e19f2c))
11+
- build: 调整Opt注解的依赖传播方式 ([`134ea59`](https://github.com/simple-robot/simpler-robot/commit/134ea59))
12+
- optimize(core): 隐藏部分未隐藏的挂起函数 ([`cccc2b0`](https://github.com/simple-robot/simpler-robot/commit/cccc2b0))
613

7-
# v4.0.1
814

915
> Release & Pull Notes: [v4.0.1](https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.1)
1016

buildSrc/src/main/kotlin/P.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ object P : ProjectDetail() {
3333
get() = HOMEPAGE
3434

3535
const val VERSION = "4.1.0"
36-
const val NEXT_VERSION = "4.1.0"
36+
const val NEXT_VERSION = "4.1.1"
3737

3838
override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT"
3939
override val version = if (isSnapshot()) snapshotVersion else VERSION

buildSrc/src/main/kotlin/changelog/GenerateChangelog.kt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import java.io.FileWriter
2929
import java.io.RandomAccessFile
3030
import java.nio.file.Files
3131
import java.util.*
32+
import kotlin.jvm.optionals.getOrElse
3233

3334
data class CommitLog(val message: String, val hash: MutableList<String>, val pre: String?)
3435

@@ -46,12 +47,20 @@ fun Project.generateChangelog(tag: String) {
4647
val libs = rootProject.extensions.getByType<VersionCatalogsExtension>()
4748
.named("libs")
4849

49-
val coreVersion = libs.findVersion("simbot").get()
50+
val coreVersion = libs.findVersion("simbot")
51+
.map { it.requiredVersion.ifEmpty { it.strictVersion }.ifEmpty { it.preferredVersion } }
52+
.getOrElse { "?" }
53+
54+
val ktVersion = libs.findVersion("kotlin")
55+
.map { it.requiredVersion.ifEmpty { it.strictVersion }.ifEmpty { it.preferredVersion } }
56+
.getOrElse { "?" }
5057

5158
file.writeText(
5259
"""
53-
> [!note]
54-
> 对应核心版本: [**v$coreVersion**](https://github.com/simple-robot/simpler-robot/releases/tag/v$coreVersion)
60+
| 依赖 | 版本 |
61+
| ---: | :--- |
62+
| Kotlin | **v$ktVersion** |
63+
| simbot核心库 | [**v$coreVersion**](https://github.com/simple-robot/simpler-robot/releases/tag/v$coreVersion) |
5564
5665
我们欢迎并期望着您的 [反馈](https://github.com/simple-robot/simbot-component-kook/issues) 或 [协助](https://github.com/simple-robot/simbot-component-kook/pulls),感谢您的贡献与支持!
5766

0 commit comments

Comments
 (0)