How to resolve dependency conflict of an SBT dependency?

雨燕双飞 提交于 2020-01-04 01:58:17

问题


I have a project's build.sbt which is using :

libraryDependencies ++= Seq(
   "com.lerestau" % "killer-launcher" % "1.0.2",
   "com.lerestau" % "menu-starter" % "1.0.0"
)

menu-starter transitively downloading "killer-launcher" % "0.0.8" and Hence getting errors in current project. Is there any way to resolve this sort of conflict. I came up with dependencyOverrides, but that works if conflict is entirely binary. That didn't work. How to resolve in SBT?


回答1:


The following should get rid of the transitive dependency of menu-starter on the older killer-launcher version:

libraryDependencies ++= Seq(
  "com.lerestau" % "killer-launcher" % "1.0.2",
  "com.lerestau" % "menu-starter" % "1.0.0" exclude("com.lerestau", "killer-launcher"
)  

More details can be found in the documentation unfortunately there doesn't seem to be a way to link directly to the relevant section.



来源:https://stackoverflow.com/questions/36305311/how-to-resolve-dependency-conflict-of-an-sbt-dependency

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!