How to Build akka Project with sbt

  akka, sbt

New folder

mkdir akkademo
sbt
set name := “akkademo”
set version := “1.0”
set scalaVersion := “2.10.2”
session save
exit

Sbt

vim build.sbt
libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-actor" % "2.2.1",
  "com.typesafe.akka" %% "akka-testkit" % "2.2.1",
  "org.scalatest" %% "scalatest" % "1.9.1" % "test",
  "junit" % "junit" % "4.11" % "test",
  "com.novocode" % "junit-interface" % "0.10" % "test"
)
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v”)

Sbt

cd project
vim plugins.sbt
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2”)
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0”)

Generate idea or eclipse support

sbt gen-idea
sbt eclipse  (得有eclipse才能生成maven一样的项目组织结构)