angelokh
angelokh

Reputation: 9428

What is libraryDependencies <+= scalaVersion() in my build.sbt?

In my build.sbt, I have this line.

libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _)
libraryDependencies += "org.parboiled" %% "parboiled" % "2.1.0"

I can't remember what the first line means. How can I combine these 2 lines?

Upvotes: 0

Views: 146

Answers (1)

Ajay Padala
Ajay Padala

Reputation: 2421

In the later sbts, I am pretty sure from 0.13.x onwards, you can use

    libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
    "org.parboiled" %% "parboiled" % "2.1.0"
    )

http://www.scala-sbt.org/0.13/tutorial/More-About-Settings.html#Computing+a+value+based+on+other+keys%E2%80%99+values

Upvotes: 3

Related Questions