From e80e57273888c9569ecd06aeab7c627c30ca3059 Mon Sep 17 00:00:00 2001 From: cssxsh Date: Sat, 20 Jul 2024 04:00:14 +0800 Subject: [PATCH] build: 1.8.1 --- build.gradle.kts | 7 +++++-- settings.gradle.kts | 7 ------- .../kotlin/xyz/cssxsh/mirai/bilibili/BiliHelperPlugin.kt | 2 +- src/test/kotlin/xyz/cssxsh/bilibili/ApiTest.kt | 3 +-- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b9da030d..64111b29 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { } group = "xyz.cssxsh" -version = "1.8.0" +version = "1.8.1" repositories { mavenLocal() @@ -43,12 +43,15 @@ dependencies { implementation("io.ktor:ktor-client-content-negotiation") implementation("io.ktor:ktor-serialization-kotlinx-json") // - implementation(platform("org.slf4j:slf4j-parent:2.0.12")) + implementation(platform("org.slf4j:slf4j-parent:2.0.13")) testImplementation("org.slf4j:slf4j-simple") } mirai { jvmTarget = JavaVersion.VERSION_11 + if (System.getenv("CI").toBoolean()) { + useTestConsoleFrontEnd = null + } } tasks { diff --git a/settings.gradle.kts b/settings.gradle.kts index 2c4fb891..2dad15f2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,8 +1 @@ -pluginManagement { - repositories { - mavenLocal() - mavenCentral() - gradlePluginPortal() - } -} rootProject.name = "bilibili-helper" \ No newline at end of file diff --git a/src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliHelperPlugin.kt b/src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliHelperPlugin.kt index dfe884cc..476e6dbd 100644 --- a/src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliHelperPlugin.kt +++ b/src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliHelperPlugin.kt @@ -14,7 +14,7 @@ import xyz.cssxsh.mirai.bilibili.data.* @PublishedApi internal object BiliHelperPlugin : KotlinPlugin( - JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.8.0") { + JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.8.1") { name("bilibili-helper") author("cssxsh") diff --git a/src/test/kotlin/xyz/cssxsh/bilibili/ApiTest.kt b/src/test/kotlin/xyz/cssxsh/bilibili/ApiTest.kt index 92338d79..f79c11ab 100644 --- a/src/test/kotlin/xyz/cssxsh/bilibili/ApiTest.kt +++ b/src/test/kotlin/xyz/cssxsh/bilibili/ApiTest.kt @@ -7,8 +7,7 @@ import xyz.cssxsh.bilibili.api.* internal abstract class ApiTest { init { - System.setProperty(EXCEPTION_JSON_CACHE, "./test") - System.getProperty(JSON_IGNORE, "false") + System.setProperty(EXCEPTION_JSON_CACHE, "./run/exception") } protected val client = BiliClient()