我如何告诉 sbt 使用 Scala 2.10 的夜间版本? [英] How do I tell sbt to use a nightly build of Scala 2.10?

查看:31
本文介绍了我如何告诉 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"

这篇关于我如何告诉 sbt 使用 Scala 2.10 的夜间版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆