添加ThisBuild / useCoursier := false
到我的 build.sbt 文件后出现问题。Plugins.sbt 文件是
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") // "2.4.0" is just sbt plugin version
在 IntelliJ 中加载 SBT 更改时,我得到
[error] stack trace is suppressed; run 'last updateSbtClassifiers' for the full output
[error] (updateSbtClassifiers) java.lang.IllegalArgumentException: Cannot add dependency 'org.scoverage#sbt-scoverage;1.6.1' to configuration 'default' of module de.corram#my-etl$sbt_2.12;0.1.1 because this configuration doesn't exist!
[error] Total time: 16 s, completed 17 Mar 2021, 16:47:44