我如何告诉 sbt 使用 Scala 2.10 的夜间版本?
使用 sbt 构建的 Scala 迁移在 Scala 中找到了 SI-66462.10.0-RC2.我想在 RC3 发布之前测试提交的修复程序以确认它一切正常.我如何告诉 sbt 使用夜间 Scala 2.10.0 构建?
Scala Migrations, which builds with sbt, found SI-6646 in Scala 2.10.0-RC2. I want to test the committed fix before RC3 is released to confirm it all works. How do I tell sbt to use a nightly Scala 2.10.0 build?
您首先需要在 .build
的项目设置中添加一个新的解析器.我们导入了来自 Scala 的最新提交的 Sonatype 存储库.查看此链接以查看所有版本的列表可用.
You first need to add a new resolver to your project settings in your .build
. We import the Sonatype repository which have the last commits from Scala. Look at this link to see the list of all the versions available.
resolvers += Resolver.sonatypeRepo("snapshots")
然后在 sbt 设置中再次更改 Scala 版本.
Then just change the Scala version, again in the sbt settings.
scalaVersion := "2.10.0-SNAPSHOT"