Created
April 28, 2014 21:58
-
-
Save bmc/11385261 to your computer and use it in GitHub Desktop.
Getting 2.10-style reflection to work in 2.11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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