Skip to content

开发Mirai Console Plugin插件时,使用其他插件 #1259

Answered by Karlatemp
ellieot asked this question in Q&A
Discussion options

You must be logged in to vote

添加编译依赖 (compileOnly) 即可调用其他插件的 api, 并且运行时提供两个插件即可

Example:

dependencies {
  compileOnly(fileTree("libs")) // 需要调用的插件在项目中名为 `libs` 的文件夹内
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ellieot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants