Skip to content

Commit

Permalink
build: 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Aug 29, 2021
1 parent e094137 commit 54cfa69
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
15 changes: 11 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ plugins {
}

group = "io.github.gnuf0rce"
version = "1.1.0"
version = "1.1.1"

mirai {
configureShadow {
exclude {
it.path.startsWith("kotlin")
listOf(
"kotlin",
"org/intellij",
"org/jetbrains",
"org/slf4j"
).forEach { prefix ->
exclude { element ->
element.path.startsWith(prefix)
}
}
}
}
Expand All @@ -29,7 +36,7 @@ repositories {
kotlin {
sourceSets {
all {
// languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
// languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
// languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiExperimentalApi")
// languageSettings.useExperimentalAnnotation("net.mamoe.mirai.console.util.ConsoleExperimentalApi")
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

object Versions {
// mirai
const val mirai = "2.6.7"
const val mirai = "2.7.0"
// kotlin
const val kotlin = "1.5.21"
const val ktor = "1.5.1"
const val ktor = "1.5.4"
// other
const val junit = "5.6.2"
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
`[...]`表示参数,当`[...]`后面带`?`时表示参数可选
`{...}`表示连续的多个参数

`[repo]` 格式为 `mamoe/mirai`
`[repo]` 格式为 `{owner}/{repo}`, 举例 `mamoe/mirai`
`[contact]?`是可选的参数,会自动由当前环境填充,例如群聊填充群号,私聊填充QQ号

### GitHubIssuesCommand
Expand Down Expand Up @@ -71,4 +71,4 @@

* token [Personal Access Tokens](https://github.com/settings/tokens)

* reply Subscriber Reply Message Type `TEXT, XML, JSON`, JSON 还不可用
* reply Subscriber Reply Message Type `TEXT, XML, JSON`, JSON 尚不可用
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object GitHubHelperPlugin : KotlinPlugin(
JvmPluginDescription(
id = "io.github.gnuf0rce.github-helper",
name = "github-helper",
version = "1.1.0",
version = "1.1.1",
) {
author("cssxsh")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import net.mamoe.mirai.console.util.CoroutineScopeUtils.childScope
import net.mamoe.mirai.utils.*

@OptIn(ConsoleExperimentalApi::class)
abstract class GitHubSubscriber<T : LifeCycle>(private val name: String, scope: CoroutineScope = GlobalScope) :
abstract class GitHubSubscriber<T : LifeCycle>(private val name: String, scope: CoroutineScope = MainScope()) :
CoroutineScope by scope.childScope(name) {
companion object {
val reply by GitHubConfig::reply
Expand Down

0 comments on commit 54cfa69

Please sign in to comment.