我有一个包含多个实用程序类的项目.我们将它命名为Utils.
我有一个依赖于Utils的proj1.另一个proj2依赖于proj1和Utils.
我有一个依赖于Utils的proj1.另一个proj2依赖于proj1和Utils.
问题是如果proj1和proj2都依赖于不同的Utils版本,这将导致问题.
什么是最好的解决方案?
这种情况发生在Scala / SBT项目中,但我猜其他语言也有同样的问题.
Edit:
Just to be clear,
proj2
is the project that will run,that uses some code fromproj1
andUtils
.