Skip to content

Commit

Permalink
build: 1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Aug 11, 2024
1 parent 48d94cc commit d43c217
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.4.4 (24/08/11)

1. update: kotlin 1.8.22
2. update: mirai 2.16.0
3. update: jakarta.mail 2.1.3
4. update: apache.poi 5.3.0
5. fix: POIException #3

## 1.4.3 (23/08/16)

1. fix: online message cache check, close #27
Expand Down
6 changes: 2 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.cssxsh.mirai"
version = "1.4.3"
version = "1.4.4"

mavenCentralPublish {
useCentralS01()
Expand All @@ -28,10 +28,8 @@ repositories {
dependencies {
api("com.cronutils:cron-utils:9.2.1")
api("jakarta.mail:jakarta.mail-api:2.1.3")
// api("org.apache.poi:poi:5.3.0") fix https://github.com/cssxsh/mirai-administrator/issues/32
implementation("org.apache.poi:poi:5.3.0")
api("org.apache.poi:poi-ooxml:5.3.0") // fix https://github.com/cssxsh/mirai-administrator/issues/32
implementation("org.eclipse.angus:angus-mail:2.0.3")
implementation("org.apache.poi:poi-ooxml:5.3.0")
testImplementation(kotlin("test"))
//
implementation(platform("net.mamoe:mirai-bom:2.16.0"))
Expand Down
9 changes: 1 addition & 8 deletions src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiAdminPlugin.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package xyz.cssxsh.mirai.admin

import kotlinx.coroutines.*
import net.mamoe.mirai.console.*
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.register
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.unregister
import net.mamoe.mirai.console.data.*
import net.mamoe.mirai.console.plugin.*
import net.mamoe.mirai.console.plugin.jvm.*
import net.mamoe.mirai.console.util.*
import net.mamoe.mirai.event.*
Expand All @@ -20,18 +18,13 @@ internal object MiraiAdminPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.mirai-administrator",
name = "mirai-administrator",
version = "1.4.3",
version = "1.4.4"
) {
author("cssxsh")
}
) {

override fun onEnable() {
// XXX: mirai console version check
check(SemVersion.parseRangeRequirement(">= 2.12.0-RC").test(MiraiConsole.version)) {
"$name $version 需要 Mirai-Console 版本 >= 2.12.0,目前版本是 ${MiraiConsole.version}"
}

AdminAutoApproverConfig.reload()
AdminOnlineMessageConfig.reload()
AdminCommentConfig.reload()
Expand Down

0 comments on commit d43c217

Please sign in to comment.