Blair Zajac Blair Zajac - 5 months ago 36
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?


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"