Reputation: 7986
I'm having problems with my project which I think are due to intellij pulling in a load of scala 2.10 libraries when it created/if I reimport my project.
How can I configure it to either read the version of scala from build.sbt
, or manually configure it to compile with scala 2.11.7? I'm running intellij IDEA 14 with the latest updates and it always uses scala 2.10.4.
Upvotes: 1
Views: 786
Reputation: 170735
The 2.10 libraries are used by SBT itself. If you check the Dependencies
tab for your modules, you shouldn't see them. If you do, you likely have an error in libraryDependencies
in build.sbt
.
Upvotes: 0
Reputation: 6059
Make sure you have your Scala Version set in your build.sbt
scalaVersion := "2.11.7"
The rest works seemlessly. Enable "Auto-Import" in IDEA when creating the project.
Upvotes: 1