title: What's required to have sbt build with Akka?
body: <p>I am trying to use scala -akka from sbt.</p>
  
  <p>My sbt file looks as follows:</p>
  
  <pre><code>name := "hello"
  
  version := "1.0"
  
  scalaVersion := "2.9.1"
  
  resolvers += "akka" at "http://repo.akka.io/snapshots"
  
  libraryDependencies ++= Seq(
    "com.codahale"      % "simplespec_2.9.0-1" % "0.4.1",
    "com.typesafe.akka" % "akka-stm"           % "2.0-SNAPSHOT" 
  )
  </code></pre>
  
  <p>my code:</p>
  
  <pre><code>import akka._
  
  object HelloWorld {
    def main(args: Array[String]) {
      println("Hello, world!")
    }
  }
  </code></pre>
  
  <p>When I do <code>sbt compile</code>, I get </p>
  
  <pre><code>]# **sbt compile**
  [info] Set current project to default-91c48b (in build file:/var/storage1/home/test_user/dev_scala/hello/)
  [info] Compiling 1 Scala source to /var/storage1/home/test_user/dev_scala/hello/target/scala-2.9.2/classes...
  [error] /var/storage1/home/test_user/dev_scala/hello/src/main/scala/hw.scala:3: not found: object akka
  [error] import akka._
  [error]        ^
  [error] one error found
  [error] (compile:compile) Compilation failed
  [error] Total time: 3 s, completed May 22, 2013 8:59:08 PM
  </code></pre>
  
  <p>Please advice.</p>
  
  <p>EDIT2: 
  based on comments bellow. here is the new sbt file</p>
  
  <pre><code>name := "hello"
  version := "1.0"
  scalaVersion := "2.9.1"
  
  resolvers += "akka" at "http://repo.akka.io/snapshots"
  
  libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-actor" % "2.1.4",
    "com.codahale" % "simplespec_2.9.0-1" % "0.4.1",
    "com.typesafe.akka" % "akka-stm" % "2.0-SNAPSHOT" ,
    "com.typesafe.akka" %% "akka-actor"    % "2.2-M3",
  "com.typesafe.akka" %% "akka-slf4j"    % "2.2-M3",
  "com.typesafe.akka" %% "akka-remote"   % "2.2-M3",
  "com.typesafe.akka" %% "akka-testkit"  % "2.2-M3"% "test"
  )
  </code></pre>
  
  <p>any ideas ?</p>