Skip to content

Instantly share code, notes, and snippets.

@bmc
Created April 28, 2014 21:58
Show Gist options
  • Save bmc/11385261 to your computer and use it in GitHub Desktop.
Save bmc/11385261 to your computer and use it in GitHub Desktop.
Getting 2.10-style reflection to work in 2.11
libraryDependencies <<= (scalaVersion, libraryDependencies) { (sv, deps) =>
// If we're compiling on 2.11, we need to haul the reflection library
// in separately, since it's no longer bundled in 2.11.
if (sv.startsWith("2.11.")) {
deps :+ "org.scala-lang" % "scala-reflect" % "2.11.0"
}
else {
deps
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment