mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 03:16:05 +08:00
2.0.0
This commit is contained in:
parent
da04234a56
commit
2947a7c162
@ -14,8 +14,8 @@ import java.time.Instant
|
||||
|
||||
internal object MiraiConsoleBuildConstants { // auto-filled on build (task :mirai-console:fillBuildConstants)
|
||||
@JvmStatic
|
||||
val buildDate: Instant = Instant.ofEpochSecond(1610449212)
|
||||
const val versionConst: String = "2.0-RC"
|
||||
val buildDate: Instant = Instant.ofEpochSecond(1610704964)
|
||||
const val versionConst: String = "2.0.0"
|
||||
|
||||
@JvmStatic
|
||||
val version: SemVersion = SemVersion(versionConst)
|
||||
|
@ -12,8 +12,8 @@
|
||||
import org.gradle.api.attributes.Attribute
|
||||
|
||||
object Versions {
|
||||
const val core = "2.0-RC"
|
||||
const val console = "2.0-RC-dev-2"
|
||||
const val core = "2.0.0"
|
||||
const val console = "2.0.0"
|
||||
const val consoleGraphical = "0.0.7"
|
||||
const val consoleTerminal = console
|
||||
|
||||
@ -33,7 +33,7 @@ object Versions {
|
||||
|
||||
const val bintray = "1.8.5"
|
||||
|
||||
const val blockingBridge = "1.5.0"
|
||||
const val blockingBridge = "1.6.0"
|
||||
|
||||
@Suppress("SpellCheckingInspection")
|
||||
const val yamlkt = "0.7.5"
|
||||
|
@ -20,7 +20,7 @@ console 由后端和前端一起工作. 使用时必须选择一个前端.
|
||||
|
||||
| 版本类型 | 版本号 |
|
||||
|:------:|:------------------------------:|
|
||||
| 稳定 | 2.0-RC |
|
||||
| 稳定 | 2.0.0 |
|
||||
| 预览 | - |
|
||||
| 开发 | [![Version]][Bintray Download] |
|
||||
|
||||
|
@ -17,7 +17,7 @@ Mirai Console 可以独立启动,也可以被嵌入到某个应用中。
|
||||
### 准备文件
|
||||
|
||||
要启动 Mirai Console,你需要:
|
||||
- mirai-core-qqandroid
|
||||
- mirai-core
|
||||
- mirai-console 后端
|
||||
- mirai-console 任一前端
|
||||
- 相关依赖
|
||||
@ -108,9 +108,8 @@ repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
implementation("net.mamoe:mirai-console:1.0.1")
|
||||
implementation("net.mamoe:mirai-console-terminal:1.0.1")
|
||||
implementation("net.mamoe:mirai-core:1.3.3")
|
||||
implementation("net.mamoe:mirai-console-terminal:2.0.0") // 自行替换版本
|
||||
implementation("net.mamoe:mirai-core:2.0.0")
|
||||
}
|
||||
```
|
||||
|
||||
@ -127,7 +126,6 @@ MiraiConsoleTerminalLoader.startAsDaemon()
|
||||
|
||||
在嵌入使用时,插件可以直接加载:
|
||||
|
||||
```kotlin
|
||||
```kotlin
|
||||
MiraiConsoleTerminalLoader.startAsDaemon()
|
||||
// 先启动 Mirai Console
|
||||
|
@ -36,7 +36,7 @@ Mirai Console Gradle 插件。
|
||||
```kotlin
|
||||
mirai { // this: MiraiConsoleExtension
|
||||
// 配置,例如
|
||||
coreVersion = "2.0-RC" // 修改 mirai-core 版本
|
||||
coreVersion = "2.0.0" // 修改 mirai-core 版本
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -10,6 +10,6 @@
|
||||
package net.mamoe.mirai.console.gradle
|
||||
|
||||
internal object VersionConstants {
|
||||
const val CONSOLE_VERSION = "2.0-RC" // value is written here automatically during build
|
||||
const val CORE_VERSION = "2.0-RC" // value is written here automatically during build
|
||||
const val CONSOLE_VERSION = "2.0.0" // value is written here automatically during build
|
||||
const val CORE_VERSION = "2.0.0" // value is written here automatically during build
|
||||
}
|
Loading…
Reference in New Issue
Block a user