是否有一致的方法来处理在 Scala 2.11 中被外部化的库?

Is there a consistent way to deal with libraries being extrenalized in Scala 2.11?

我痛苦地发现 scala.util.parsingscala.swing 显然不再捆绑在 Scala 2.11 中。每次,我都必须 google 找到正确的行以添加到 sbt 配置,或者找到正确的 link 下载 jar 文件的位置。

万一有其他图书馆搬走了,我怎么知道这些事情呢?还是我应该只依赖在 Whosebug 上遇到同样问题的人提出的问题? Scala Swing 项目 on github 甚至没有记录这些信息。

我喜欢即时创建 Eclipse 项目,并使它们依赖于同一工作区中的其他项目,而无需通过 sbt,并且 运行 在每个 computer/workspace 我在哪里做的。

模块化(您所说的 外部化)已经在 scala-users mailing list. But the canonical place where to find this information is in the release notes. While you may not want to read all of those, I would strongly advise reading at least the release notes for a major version of any language you use. Case in point, the release notes for Scala 2.11.0:

上讨论了很长时间

Modularization The core Scala standard library jar has shed 20% of its bytecode. The modules for xml, parsing, swing as well as the (unsupported) continuations plugin and library are available individually or via scala-library-all. Note that this artifact has weaker binary compatibility guarantees than scala-library – as explained above. The compiler has been modularized internally, to separate the presentation compiler, scaladoc and the REPL. We hope this will make it easier to contribute. In this release, all of these modules are still packaged in scala-compiler.jar. We plan to ship them in separate JARs in 2.12.x.