From eef4ed12f63706e9d06644ad1a10cd3711a8d6b9 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 14 Dec 2019 22:47:08 +0800 Subject: [PATCH] Remove redundant runtimeOnly dependencies, 0.8.0 --- UpdateLog.md | 13 +++++++++++++ gradle.properties | 2 +- mirai-debug/build.gradle.kts | 2 +- mirai-demos/mirai-demo-1/build.gradle | 2 +- mirai-demos/mirai-demo-gentleman/build.gradle | 4 ++-- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/UpdateLog.md b/UpdateLog.md index dfb087fa33..91224d7b0b 100644 --- a/UpdateLog.md +++ b/UpdateLog.md @@ -4,6 +4,19 @@ 开发版本. 频繁更新, 不保证高稳定性 +### `0.8.0` *2019/12/14* +协议 +- 现在查询群资料时可处理群号无效的情况 +- 现在能正常分辨禁言事件包 + +功能 +- 增加无锁链表: LockFreeLinkedList, 并将 ContactList 的实现改为该无锁链表 +- **ContactSystem.getQQ 不再是 `suspend`** +- ContactSystem.getGroup 仍是 `suspend`, 原因为需要查询群资料. 在群 ID 无效时抛出 `GroupNotFoundException` + +优化 +- 日志中, 发送给服务器的包将会被以名字记录, 而不是 id + ### `0.7.5` *2019/12/09* - 修复验证码包发出后无回复 (错误的验证码包) diff --git a/gradle.properties b/gradle.properties index 107c578796..951fc616e3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # style guide kotlin.code.style=official # config -mirai_version=0.7.5 +mirai_version=0.8.0 kotlin.incremental.multiplatform=true kotlin.parallel.tasks.in.project=true # kotlin diff --git a/mirai-debug/build.gradle.kts b/mirai-debug/build.gradle.kts index 6402594f9b..1d30f6e05b 100644 --- a/mirai-debug/build.gradle.kts +++ b/mirai-debug/build.gradle.kts @@ -41,7 +41,7 @@ fun DependencyHandlerScope.ktor(id: String, version: String) = "io.ktor:ktor-$id dependencies { implementation(project(":mirai-core")) - runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // classpath is not added correctly by IDE + // runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // classpath is not added correctly by IDE implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion") diff --git a/mirai-demos/mirai-demo-1/build.gradle b/mirai-demos/mirai-demo-1/build.gradle index 95bd7c2cf7..f6ea915804 100644 --- a/mirai-demos/mirai-demo-1/build.gradle +++ b/mirai-demos/mirai-demo-1/build.gradle @@ -3,7 +3,7 @@ apply plugin: "java" dependencies { api project(":mirai-core") - runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE + // runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion } diff --git a/mirai-demos/mirai-demo-gentleman/build.gradle b/mirai-demos/mirai-demo-gentleman/build.gradle index 592ca50d00..0f18b42366 100644 --- a/mirai-demos/mirai-demo-gentleman/build.gradle +++ b/mirai-demos/mirai-demo-gentleman/build.gradle @@ -4,8 +4,8 @@ apply plugin: "application" dependencies { api project(":mirai-core") - runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE - //runtime files("../../mirai-core/build/classes/atomicfu/jvm/main") // classpath is not set correctly by IDE + //runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE + implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion