Skip to content

Commit

Permalink
build: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 3, 2022
1 parent e2f70ff commit 94c1f57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ plugins {
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.21"

id("net.mamoe.mirai-console") version "2.12.0-RC"
id("net.mamoe.mirai-console") version "2.12.0"
id("net.mamoe.maven-central-publish") version "0.7.1"
}

group = "xyz.cssxsh"
version = "1.6.0"
version = "1.6.1"

repositories {
mavenLocal()
Expand All @@ -25,22 +25,22 @@ mavenCentralPublish {
}

dependencies {
implementation("io.ktor:ktor-client-okhttp:2.0.2") {
implementation("io.ktor:ktor-client-okhttp:2.0.3") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
}
implementation("io.ktor:ktor-client-encoding:2.0.2") {
implementation("io.ktor:ktor-client-encoding:2.0.3") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
}
implementation("io.ktor:ktor-client-content-negotiation:2.0.2") {
implementation("io.ktor:ktor-client-content-negotiation:2.0.3") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
}
implementation("io.ktor:ktor-serialization-kotlinx-json:2.0.2") {
implementation("io.ktor:ktor-serialization-kotlinx-json:2.0.3") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
Expand All @@ -56,12 +56,12 @@ dependencies {
exclude("org.javassist")
}
compileOnly("xyz.cssxsh.mirai:mirai-selenium-plugin:2.1.1")
compileOnly("net.mamoe:mirai-core:2.12.0-RC")
compileOnly("net.mamoe:mirai-core-utils:2.12.0-RC")
compileOnly("net.mamoe:mirai-core:2.12.0")
compileOnly("net.mamoe:mirai-core-utils:2.12.0")
compileOnly("javax.validation:validation-api:2.0.1.Final")

testImplementation(kotlin("test", "1.6.21"))
testImplementation("org.slf4j:slf4j-simple:1.7.36")
testImplementation("net.mamoe:mirai-slf4j-bridge:1.2.0")
testImplementation("xyz.cssxsh.mirai:mirai-selenium-plugin:2.1.1")
}

Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/xyz/cssxsh/bilibili/BiliClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ open class BiliClient(private val timeout: Long = 15_000L) : Closeable {
header(HttpHeaders.Origin, SPACE)
header(HttpHeaders.Referrer, SPACE)
}
expectSuccess = true
install(ContentNegotiation) {
json(json = Json)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import xyz.cssxsh.mirai.bilibili.command.*
import xyz.cssxsh.mirai.bilibili.data.*

object BiliHelperPlugin : KotlinPlugin(
JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.6.0") {
JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.6.1") {
name("bilibili-helper")
author("cssxsh")

Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ internal val ImageLimit by lazy { BiliHelperSettings.limit }

internal val SetupSelenium: Boolean by lazy {
try {
logger.info { "正在初始化 mirai-selenium-plugin,请稍后" }
MiraiSeleniumPlugin.setup()
} catch (exception: NoClassDefFoundError) {
logger.warning { "相关类加载失败,请安装 https://github.com/cssxsh/mirai-selenium-plugin $exception" }
Expand Down

0 comments on commit 94c1f57

Please sign in to comment.