Update docs

This commit is contained in:
Him188 2021-03-18 09:29:07 +08:00
parent 5cd62319b7
commit 1a85219b33

View File

@ -36,7 +36,7 @@ plugins {
} }
dependencies { dependencies {
api("net.mamoe", "mirai-core", "2.4.1") api("net.mamoe", "mirai-core", "2.4.2")
} }
``` ```
@ -56,7 +56,7 @@ plugins {
} }
dependencies { dependencies {
api('net.mamoe', 'mirai-core', '2.4.1') api('net.mamoe', 'mirai-core', '2.4.2')
} }
``` ```
@ -69,7 +69,7 @@ dependencies {
mirai 在开发时需要 `net.mamoe:mirai-core-api`, 在运行时需要 `net.mamoe:mirai-core`。可以在开发和编译时只依赖 `mirai-core-api`,会减轻对 IDE 的负担。 mirai 在开发时需要 `net.mamoe:mirai-core-api`, 在运行时需要 `net.mamoe:mirai-core`。可以在开发和编译时只依赖 `mirai-core-api`,会减轻对 IDE 的负担。
```kotlin ```kotlin
dependencies { dependencies {
val miraiVersion = "2.4.1" val miraiVersion = "2.4.2"
api("net.mamoe", "mirai-core-api", miraiVersion) // 编译代码使用 api("net.mamoe", "mirai-core-api", miraiVersion) // 编译代码使用
runtimeOnly("net.mamoe", "mirai-core", miraiVersion) // 运行时使用 runtimeOnly("net.mamoe", "mirai-core", miraiVersion) // 运行时使用
} }
@ -85,7 +85,7 @@ dependencies {
<dependency> <dependency>
<groupId>net.mamoe</groupId> <groupId>net.mamoe</groupId>
<artifactId>mirai-core-jvm</artifactId> <artifactId>mirai-core-jvm</artifactId>
<version>2.4.1</version> <!-- 替换版本为你需要的版本 --> <version>2.4.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
``` ```