Skip to content

Commit d02ca84

Browse files
committed
Update gradle readme
1 parent 5c1c40a commit d02ca84

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

mirai-console/tools/gradle-plugin/README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,17 @@ DSL 详见 [MiraiConsoleExtension](src/MiraiConsoleExtension.kt)。
4343
### 打包依赖
4444

4545
Mirai Console Gradle 在打包 JAR(`buildPlugin`) 时不会携带任何外部依赖,
46-
如果您使用了不可在 `Maven Central` 搜索到的依赖, 请使用以下配置
46+
而是会保存一份依赖列表,在加载插件时下载,
47+
如果您使用了不可在 `Maven Central` 搜索到的依赖, 请使用以下配置告知 mirai-console-gradle
4748

4849
```groovy
4950
dependencies {
50-
implementation "org.example:test1:1.0.0"
51+
implementation "org.example:test:1.0.0"
52+
53+
// 无需版本号
5154
shadowLink "org.example:test"
55+
// build.gradle.kts
56+
"shadowLink"("org.example:test")
5257
}
5358
```
5459

@@ -69,7 +74,7 @@ mirai {
6974

7075
*2021/3/21 更新:* 由于 Bintray JCenter 即将关闭,随着论坛的发展,mirai 正在策划插件中心服务。待插件中心完成后将会提供更好的插件分发平台。
7176

72-
#### 排除依赖 (Legacy)
77+
#### 排除依赖 (过时)
7378

7479
如果要在打包 JAR(`buildPluginLegacy`)时排除一些依赖,请使用如下配置:
7580

0 commit comments

Comments
 (0)