-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.12.0-RC 前置插件存在私有依赖时, 插件无法链接相同依赖 #2108
Comments
请详细的清晰的描述,我无法从你的issue中梳理出有效信息
|
@Karlatemp 测试发现 不只是 ktor 2.0 ,其他 maven 库 例如 "org.jsoup:jsoup:1.14.3", |
1是符合期望的,你直接引用了ktor1, 但是你并没有直接引用okhttp, 那么依赖列表里也不会存在 okhttp |
新建两个插件 KtorTest1 KtorTest2, build.gradle.kts (两者一致), 都有 implementation("org.jsoup:jsoup:1.14.3")
KtorTest1
KtorTest2, 引用 KtorTest1
KtorTest2 报错
|
问题描述
一共有两个问题
在插件里有使用 mirai-console 内置带有的 ktor 1.0 的插件 (下面日志里的 bilibili-helper),
添加了 ktor 1.0 的扩展
然后 bilibili-helper 在 http-client 初始化时报错。(日志 1)
bilibili-helper 进行升级到了 ktor 2.0,初始化时也出现的报错 (日志 2),
经测试发现是依赖问题,bilibili-helper 有 个前置依赖 mirai-selenium-plugin ,我给这个前置插件 也升级到了 ktor 2.0
复现
问题 1
问题 2
新建两个插件 KtorTest1 KtorTest2,
KtorTest2 依赖 KtorTest1
build.gradle.kts (两者一致)
mirai-core 版本
1.12.0-RC
bot-protocol
ANDROID_PHONE
其他组件版本
系统日志
日志 1
日志 2
The text was updated successfully, but these errors were encountered: