mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 08:50:15 +08:00
Update docs
This commit is contained in:
parent
5cd62319b7
commit
1a85219b33
@ -36,7 +36,7 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api("net.mamoe", "mirai-core", "2.4.1")
|
||||
api("net.mamoe", "mirai-core", "2.4.2")
|
||||
}
|
||||
```
|
||||
|
||||
@ -56,7 +56,7 @@ plugins {
|
||||
}
|
||||
|
||||
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 的负担。
|
||||
```kotlin
|
||||
dependencies {
|
||||
val miraiVersion = "2.4.1"
|
||||
val miraiVersion = "2.4.2"
|
||||
api("net.mamoe", "mirai-core-api", miraiVersion) // 编译代码使用
|
||||
runtimeOnly("net.mamoe", "mirai-core", miraiVersion) // 运行时使用
|
||||
}
|
||||
@ -85,7 +85,7 @@ dependencies {
|
||||
<dependency>
|
||||
<groupId>net.mamoe</groupId>
|
||||
<artifactId>mirai-core-jvm</artifactId>
|
||||
<version>2.4.1</version> <!-- 替换版本为你需要的版本 -->
|
||||
<version>2.4.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user