Commit d02ca84 1 parent 5c1c40a commit d02ca84 Copy full SHA for d02ca84
File tree 1 file changed +8
-3
lines changed
mirai-console/tools/gradle-plugin
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,17 @@ DSL 详见 [MiraiConsoleExtension](src/MiraiConsoleExtension.kt)。
43
43
### 打包依赖
44
44
45
45
Mirai Console Gradle 在打包 JAR(` buildPlugin ` ) 时不会携带任何外部依赖,
46
- 如果您使用了不可在 ` Maven Central ` 搜索到的依赖, 请使用以下配置
46
+ 而是会保存一份依赖列表,在加载插件时下载,
47
+ 如果您使用了不可在 ` Maven Central ` 搜索到的依赖, 请使用以下配置告知 mirai-console-gradle
47
48
48
49
``` groovy
49
50
dependencies {
50
- implementation "org.example:test1:1.0.0"
51
+ implementation "org.example:test:1.0.0"
52
+
53
+ // 无需版本号
51
54
shadowLink "org.example:test"
55
+ // build.gradle.kts
56
+ "shadowLink"("org.example:test")
52
57
}
53
58
```
54
59
@@ -69,7 +74,7 @@ mirai {
69
74
70
75
* 2021/3/21 更新:* 由于 Bintray JCenter 即将关闭,随着论坛的发展,mirai 正在策划插件中心服务。待插件中心完成后将会提供更好的插件分发平台。
71
76
72
- #### 排除依赖 (Legacy )
77
+ #### 排除依赖 (过时 )
73
78
74
79
如果要在打包 JAR(` buildPluginLegacy ` )时排除一些依赖,请使用如下配置:
75
80
You can’t perform that action at this time.
0 commit comments