I'm trying to build a project with scala 2.11.7 in intellij. I've set the scalaVersion
to 2.11.7
, but when I check the external libraries, I can see scala-compiler:2.11.0
.
Do I need to declare scala-compiler:2.11.7
as a dependency in build.sbt
? The docs are confusing, seemingly saying that I do need to and then not to in consecutive paragraphs:
When using a Scala dependency other than the standard library, add it as a normal managed dependency. For example, to depend on the Scala compiler,
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value
and
In order to compile Scala code, run scaladoc, and provide a Scala REPL, sbt needs the scala-compiler jar. This should not be a normal dependency of the project, so sbt adds a dependency on scala-compiler in the special, private scala-tool configuration.
So... should I add it or not?