Skip to content

Instantly share code, notes, and snippets.

@adriaanm
Created December 11, 2016 19:13
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adriaanm/f98dec05a44d4a615ac52283409ca53e to your computer and use it in GitHub Desktop.
Save adriaanm/f98dec05a44d4a615ac52283409ca53e to your computer and use it in GitHub Desktop.
How to use the latest Scala nightly build from your sbt build by @SethTisue
// originally by @SethTisue, see http://stackoverflow.com/questions/40622878/how-do-i-tell-sbt-to-use-a-nightly-build-of-scala-2-11-or-2-12/40622879#40622879
resolvers += "nightlies" at "https://scala-ci.typesafe.com/artifactory/scala-release-temp/"
scalaVersion := {
val propsUrl = new URL("https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-bootstrap/lastSuccessfulBuild/artifact/jenkins.properties/*view*/")
val props = new java.util.Properties
props.load(propsUrl.openStream)
props.getProperty("version")
}
scalaBinaryVersion := "2.12"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment