Why is SBT NOT excluding these libraries despite using excludes?

后端 未结 2 1265
予麋鹿
予麋鹿 2021-02-20 09:11

Despite doing the following, sbt is still grabbing lift-json. Why?

\"net.liftweb\" %% \"lift-mapper\" % \"2.6-M4\" % \"compile\" excludeAll(ExclusionRule(\"net.l         


        
2条回答
  •  别那么骄傲
    2021-02-20 09:45

    Perhaps there are some other libraries depend on it. You can find those libs by using the sbt-dependency-graph plugin. Or simply exclude it from all the dependencies:

    libraryDependencies ++= Seq(
      ......
    ).map(_.excludeAll(ExclusionRule("net.liftweb", "lift-json")))
    

提交回复
热议问题