外部图书馆版本冲突

发布于 2025-02-01 00:00:17 字数 830 浏览 3 评论 0原文

我有两个不同的打印机库,它们取决于相同的“ Java JPOS”库,但具有不同的版本,
“在此处输入图像说明”

在同一JPOS库上引用的打印机,因为它们具有相同的软件包命名,因此其中一台打印机(Custom-Printer)不适用于新库的版本。

gradle固定:

实现文件('/home/daniel/desktop/jpos_service_objects/cbmjpos.jar')
编译组:'com.custom',名称:'custom-jcl-printer-driver',版本:'1.0''

如何解决它而不将此库进行分解和重命名?

I have two different printer libraries, which are depending on same "java jPOS" library but with different versions,
enter image description here
enter image description here,
So both printers referencing on same jpos library because they have same package naming, one of this printers (custom-printer) didn't working on version of new library.
enter image description here

Gradle implimintation:
implementation files('/home/daniel/Desktop/JPOS_Service_Objects/CBMjpos.jar')
compile group: 'com.custom', name: 'custom-jcl-printer-driver', version: '1.0'

How can i solve it without decompiling and renaming this libraries?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

司马昭之心 2025-02-08 00:00:17

我找到了重新包装的非常简单的工具,可以重新包装名为(jarjar)的库 - https://github.com/shevek/shevek/shevek/jarjar < /a>

I found very simple tool to repackage the libraries named (jarjar) - https://github.com/shevek/jarjar

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文