Skip to content

Commit f596d24

Browse files
committed
build: 1.2.7
1 parent 7fc4c5f commit f596d24

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

build.gradle.kts

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ plugins {
77
}
88

99
group = "io.github.gnuf0rce"
10-
version = "1.2.6"
10+
version = "1.2.7"
1111

1212
mavenCentralPublish {
1313
useCentralS01()
1414
singleDevGithubProject("gnuf0rce", "github-helper", "cssxsh")
1515
licenseFromGitHubProject("AGPL-3.0")
1616
workingDir = System.getenv("PUBLICATION_TEMP")?.let { file(it).resolve(projectName) }
17-
?: project.buildDir.resolve("publishing-tmp")
17+
?: buildDir.resolve("publishing-tmp")
1818
publication {
19-
artifact(tasks.getByName("buildPlugin"))
19+
artifact(tasks["buildPlugin"])
2020
}
2121
}
2222

@@ -26,33 +26,33 @@ repositories {
2626
}
2727

2828
dependencies {
29-
implementation("io.ktor:ktor-client-okhttp:2.1.0") {
29+
implementation("io.ktor:ktor-client-okhttp:2.1.1") {
3030
exclude(group = "org.jetbrains.kotlin")
3131
exclude(group = "org.jetbrains.kotlinx")
3232
exclude(group = "org.slf4j")
3333
}
34-
implementation("io.ktor:ktor-client-encoding:2.1.0") {
34+
implementation("io.ktor:ktor-client-encoding:2.1.1") {
3535
exclude(group = "org.jetbrains.kotlin")
3636
exclude(group = "org.jetbrains.kotlinx")
3737
exclude(group = "org.slf4j")
3838
}
39-
implementation("io.ktor:ktor-client-content-negotiation:2.1.0") {
39+
implementation("io.ktor:ktor-client-content-negotiation:2.1.1") {
4040
exclude(group = "org.jetbrains.kotlin")
4141
exclude(group = "org.jetbrains.kotlinx")
4242
exclude(group = "org.slf4j")
4343
}
44-
implementation("io.ktor:ktor-serialization-kotlinx-json:2.1.0") {
44+
implementation("io.ktor:ktor-serialization-kotlinx-json:2.1.1") {
4545
exclude(group = "org.jetbrains.kotlin")
4646
exclude(group = "org.jetbrains.kotlinx")
4747
exclude(group = "org.slf4j")
4848
}
49-
implementation("com.squareup.okhttp3:okhttp:4.10.0") {
49+
implementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.10.0") {
5050
exclude(group = "org.jetbrains.kotlin")
5151
exclude(group = "org.jetbrains.kotlinx")
5252
exclude(group = "org.slf4j")
5353
}
5454
compileOnly("xyz.cssxsh.mirai:mirai-selenium-plugin:2.2.3")
55-
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.2.7")
55+
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.2.8")
5656
// test
5757
testRuntimeOnly("xyz.cssxsh.mirai:mirai-selenium-plugin:2.2.3")
5858
testImplementation(kotlin("test"))

src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubHelperPlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public object GitHubHelperPlugin : KotlinPlugin(
2828
JvmPluginDescription(
2929
id = "io.github.gnuf0rce.github-helper",
3030
name = "github-helper",
31-
version = "1.2.6",
31+
version = "1.2.7",
3232
) {
3333
author("cssxsh")
3434

src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubMessage.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,10 @@ public suspend fun PullRequestReviewComment.toMessage(contact: Contact): Message
765765

766766
public suspend fun Release.toMessage(contact: Contact, format: Format, notice: String): Message {
767767
if (contact is FileSupported) {
768-
contact.launch(SupervisorJob()) {
769-
uploadTo(contact)
768+
supervisorScope {
769+
launch {
770+
uploadTo(contact)
771+
}
770772
}
771773
}
772774

src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubUitls.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,14 @@ internal val github by lazy {
6767

6868
override val ignore: (Throwable) -> Boolean = {
6969
when (it) {
70+
is UnknownHostException,
71+
is NoRouteToHostException -> false
72+
is SocketTimeoutException -> {
73+
logger.warning { "HttpClient Ignore ${it.message}" }
74+
true
75+
}
7076
is IOException -> {
71-
logger.warning { "HttpClient Ignore $it" }
77+
logger.warning({ "HttpClient Ignore" }, it)
7278
true
7379
}
7480
else -> {

0 commit comments

Comments
 (0)