Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Jan 15, 2021
1 parent da04234 commit 2947a7c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion docs/ConfiguringProjects.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ console 由后端和前端一起工作. 使用时必须选择一个前端.

| 版本类型 | 版本号 |
|:------:|:------------------------------:|
| 稳定 | 2.0-RC |
| 稳定 | 2.0.0 |
| 预览 | - |
| 开发 | [![Version]][Bintray Download] |

Expand Down
8 changes: 3 additions & 5 deletions docs/Run.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Mirai Console 可以独立启动,也可以被嵌入到某个应用中。
### 准备文件

要启动 Mirai Console,你需要:
- mirai-core-qqandroid
- mirai-core
- mirai-console 后端
- mirai-console 任一前端
- 相关依赖
Expand Down Expand Up @@ -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")
}
```

Expand All @@ -127,7 +126,6 @@ MiraiConsoleTerminalLoader.startAsDaemon()

在嵌入使用时,插件可以直接加载:

```kotlin
```kotlin
MiraiConsoleTerminalLoader.startAsDaemon()
// 先启动 Mirai Console
Expand Down
2 changes: 1 addition & 1 deletion tools/gradle-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Mirai Console Gradle 插件。
```kotlin
mirai { // this: MiraiConsoleExtension
// 配置,例如
coreVersion = "2.0-RC" // 修改 mirai-core 版本
coreVersion = "2.0.0" // 修改 mirai-core 版本
}
```

Expand Down
4 changes: 2 additions & 2 deletions tools/gradle-plugin/src/VersionConstants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 2947a7c

Please sign in to comment.