技術をかじる猫

適当に気になった技術や言語、思ったこと考えた事など。

Akkaの勉強をScala2.10で行ってみる

先ずはsbtでscala2.10を設定。
依存とバージョン番号指定すればよさそう

organization := "net.azalea"

name := "Alla-sample"

version := "0.1.0"

scalaVersion := "2.10.0"

description := "An JSON schema(http://json-schema.org/) access helper for scala."

licenses += "BSD license" -> url("http://www.opensource.org/licenses/bsd-license.php" )

resolvers += "releases" at "http://oss.sonatype.org/content/repositories/releases"

resolvers += "snapshot" at "http://oss.sonatype.org/content/repositories/snapshots"

libraryDependencies ++= Seq(
  "org.scala-lang" % "scala-library" % "2.10.0" % "provided",
  "org.scala-lang" % "scala-compiler" % "2.10.0"
)

さていくかーと思ったらここでハマり。
ActorSystem が見つからない。どういうことだと思って調べたら。

http://sassembla.github.com/Public/2013:01:13%2022-29-14/2013:01:13%2022-29-14.html

はいってねええええええええ!
しょーがないので

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"

libraryDependencies ++= Seq(
  "org.scala-lang" % "scala-library" % "2.10.0" % "provided",
  "org.scala-lang" % "scala-compiler" % "2.10.0",
  "com.typesafe.akka" % "akka-actor_2.10.0-RC1" % "2.1.0-RC1",
  "ch.qos.logback" % "logback-classic" % "1.0.9"
)

akka-actor_2.10.0-RC1 もありましたが、これもリリース候補版でどうなるか分からんので2.0を選択。
続きは午後書く。