The SBT syntax to add multiple library dependencies (Scala)

As a quick note, the Scala Simple Build Tool (SBT) syntax to add multiple library dependencies is this:

libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-actor" % "2.1.1",
  "com.typesafe.akka" %% "akka-remote" % "2.1.1"
)

For the sake of completeness, if you only need to add one dependency the syntax is this:

libraryDependencies += "com.typesafe.akka" % "akka-actor_2.10" % "2.2-M1"

As I think about it, it’s probably easier to just always use the syntax for adding multiple dependencies. (I can never remember its syntax, so if I use it all the time, that’s one less thing I have to remember.)

Add new comment

The content of this field is kept private and will not be shown publicly.

Anonymous format

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul type> <ol start type> <li> <pre>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.