GSON版本冲突&无法解决com.google.gson/2.8.6缺少要求[com.google.gson/2.8.6] osgi.ee filter:=& osgi.ee = javase = 9.0
我有一些XYZ现有的PKG,可以使用Google.gson版本2.2.4。
我正在为HTTP客户端创建新的PKG(OSGI捆绑包)来调用API,我需要GSON版本2.8.6。
如果我使用现有版本IE 2.2.4,则在编译过程中会以下以下问题。
在以下模块中找到的冲突: -com.google.code.gson:版本2.9.0和2.8.6之间的GSON
,如果我使用版本IE 2.8.6(在我的情况下),现有测试失败 - 这是IntegrationTest失败背后的实际错误: - 无法解决com.google.gson/2.8.6:缺失要求[com.google.gson/2.8.6] osgi.ee;过滤器:=“(&(osgi.ee = javase)(版本= 9.0))
Java Java版本“ 1.8.0_311”,Gradle 5.2
I have some xyz existing pkg which use google.gson version 2.2.4.
I am creating new pkg(osgi bundle) for http client to call api, I need gson version 2.8.6.
If I go with existing version i.e. 2.2.4, I get following below issue during compilation.
Conflict(s) found for the following module(s):
- com.google.code.gson:gson between versions 2.9.0 and 2.8.6
And if I go with version i.e. 2.8.6, which is required in my case, existing test fails -
This is the actual error behind the integrationtest failure :
-Unable to resolve com.google.gson/2.8.6: missing requirement [com.google.gson/2.8.6] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=9.0))
java java version "1.8.0_311" with Gradle 5.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误消息
缺少要求[com.google.gson/2.8.6] Osgi.ee;过滤器:=“(&(osgi.ee = javase)(版本= 9.0))
表示2.8.6版本至少需要Java 9。The error messages
missing requirement [com.google.gson/2.8.6] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=9.0))
means that version 2.8.6 requires at least Java 9.