Why does SBT Scala (2.10) not include Akka?

I downloaded Scala 2.10.2, unpacked it and ran the Scala command, I can successfully import akka._ .

In another experiment, I create an sbt project with the following line in the build.sbt file:

 scalaVersion := "2.10.2" 

The source file is import akka._ , and sbt complains that "akka was not found."

What is the difference between Scala SBT 2.10.2 and what's on the Scala website? And why does the official Scala already include the Akka library, but SBT Scala is not?

+4
source share
1 answer

Akka is part of the Scala distribution (downloaded by zip), but not the standard Scala library - this is what you get in SBT.

+9
source

Source: https://habr.com/ru/post/1495172/


All Articles