Blair Zajac Blair Zajac - 1 year ago 76
Scala Question

How do I tell sbt to use a nightly build of Scala 2.10?

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?

Answer Source

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")

Then just change the Scala version, again in the sbt settings.

scalaVersion := "2.10.0-SNAPSHOT"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download