Why do I get conflicting cross-version in sbt on one environment but not another?

回眸只為那壹抹淺笑 提交于 2019-11-29 10:40:22

Given the pom for com.github.nikita-volkov:embrace, I'm guessing it's due to the use of version ranges combined with caching:

<dependency>
  <groupId>org.scala-lang</groupId>
  <artifactId>scala-compiler</artifactId>
  <version>[2.10,3)</version>
  <scope>compile</scope>
</dependency>

Particularly given that Scala 2.12.0-M1 was release yesterday:


To fix the inconsistency you want to clear your ivy cache:

rm -r ~/.ivy2/cache

However you also want to fix the version of scala-compiler use, and you want it to match your configured scalaVersion:

dependencyOverrides += "org.scala-lang" % "scala-compiler" % scalaVersion.value

See more details in the Overriding a version section of the Library Management docs.

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