外部库版本冲突

External library version conflicts

我有两个不同的打印机库,它们依赖于相同的“java jPOS”库但版本不同,

,
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.

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

如何在不反编译和重命名这个库的情况下解决它?

我找到了一个非常简单的工具来重新打包名为 (jarjar) 的库 - https://github.com/shevek/jarjar