Skip to content

Commit

Permalink
build: 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Dec 10, 2021
1 parent 4f0e70f commit a463418
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 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.0.3"
version = "1.0.4"

mavenCentralPublish {
useCentralS01()
Expand All @@ -31,8 +31,11 @@ dependencies {
exclude("org.seleniumhq.selenium")
exclude("junit")
exclude("classworlds")
exclude("io.netty")
}
api("org.seleniumhq.selenium:selenium-java:4.1.0") {
exclude("io.netty")
}
api("org.seleniumhq.selenium:selenium-java:4.0.0")

testImplementation(kotlin("test", "1.5.31"))
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package xyz.cssxsh.mirai.plugin

import kotlinx.coroutines.*
import net.mamoe.mirai.console.extension.*
import net.mamoe.mirai.console.plugin.jvm.*
import net.mamoe.mirai.console.util.*
Expand All @@ -12,7 +13,7 @@ object MiraiSeleniumPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.mirai-selenium-plugin",
name = "mirai-selenium-plugin",
version = "1.0.3",
version = "1.0.4",
) {
author("cssxsh")
}
Expand Down Expand Up @@ -56,7 +57,7 @@ object MiraiSeleniumPlugin : KotlinPlugin(

@OptIn(ConsoleExperimentalApi::class)
override fun PluginComponentStorage.onLoad() {
KtorContext = this@MiraiSeleniumPlugin.childScopeContext("SeleniumHttpClient")
KtorContext = childScopeContext(name = "SeleniumHttpClient", context = Dispatchers.IO)
}

override fun onEnable() {
Expand Down

0 comments on commit a463418

Please sign in to comment.