Understanding `libraryDependencies` with respect to Scala Version in `build.sbt`

31 views
Skip to first unread message

Kevin Meredith

unread,
Feb 3, 2015, 5:37:03 PM2/3/15
to simple-b...@googlegroups.com
My incomplete understanding is that, differing Scala major versions may not be compatible with each other.

So, a library compiled on Scala 2.9 will likely not work with a Scala 2.10 library.

Given the following `build.sbt`:

    name := "Foobar"
    
    version := "1.0"
    
    scalaVersion := "2.11.4"
    
    libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.3.4"

Does **sbt** only pull down the `akka-actor` library that's compatible with Scala version: `2.11.4`?

nafg

unread,
Feb 3, 2015, 9:07:34 PM2/3/15
to simple-b...@googlegroups.com
%% is just a shortcut for (in this case) % "akka-actor_2.11"
 
Reply all
Reply to author
Forward
0 new messages