mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-05 17:59:14 +08:00
Update ConfiguringProjects.md versions
This commit is contained in:
parent
0183981b63
commit
df4e5caf30
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
| 版本类型 | 版本号 |
|
| 版本类型 | 版本号 |
|
||||||
|:------:|:------------------------------:|
|
|:------:|:------------------------------:|
|
||||||
| 稳定 | 2.4.0 |
|
| 稳定 | 2.4.1 |
|
||||||
| 预览 | - |
|
| 预览 | 2.5-M1 |
|
||||||
| 开发 | [![Version]][Bintray Download] |
|
| 开发 | [![Version]][Bintray Download] |
|
||||||
|
|
||||||
### 配置项目
|
### 配置项目
|
||||||
@ -32,11 +32,11 @@
|
|||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm") version "1.4.21" // 请确保添加 Kotlin,至少使用 1.4.0 版本
|
kotlin("jvm") version "1.4.31" // 确保添加 Kotlin
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("net.mamoe", "mirai-core", "2.4.0")
|
api("net.mamoe", "mirai-core", "2.4.1")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -52,11 +52,11 @@ dependencies {
|
|||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.jetbrains.kotlin.jvm' version '1.4.21' // 确保添加 Kotlin
|
id 'org.jetbrains.kotlin.jvm' version '1.4.31' // 确保添加 Kotlin
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api('net.mamoe', 'mirai-core', '2.4.0')
|
api('net.mamoe', 'mirai-core', '2.4.1')
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -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.0"
|
val miraiVersion = "2.4.1"
|
||||||
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.0</version> <!-- 替换版本为你需要的版本 -->
|
<version>2.4.1</version> <!-- 替换版本为你需要的版本 -->
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
```
|
```
|
||||||
@ -97,7 +97,7 @@ dependencies {
|
|||||||
|
|
||||||
```xml
|
```xml
|
||||||
<properties>
|
<properties>
|
||||||
<kotlin.version>1.4.21</kotlin.version>
|
<kotlin.version>1.4.31</kotlin.version>
|
||||||
</properties>
|
</properties>
|
||||||
```
|
```
|
||||||
```xml
|
```xml
|
||||||
|
Loading…
Reference in New Issue
Block a user