问题
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