2016-03-21 45 views
3

我正在使用Typesafe/Lightbend Activator,並使用'minimal-akka-scala-seed'創建了一個項目。然後我將2.3k的akka​​版本改爲2.4.2(目前的穩定版本)。 現在我想爲我的項目添加最新的穩定Akka-HTTP和Akka-stream。我應該在build.sbt中編寫這些內容?如何將最新的Akka-HTTP和Akka流添加到build.sbt中

回答

2

一些工件不再標記爲實驗,2.4.2版本。

我相信,依賴列表中應該是這樣的:

libraryDependencies ++= Seq(
    // akka 
    "com.typesafe.akka" %% "akka-actor" % "2.4.2", 
    "com.typesafe.akka" %% "akka-testkit" % "2.4.2" % "test", 
    // streams 
    "com.typesafe.akka" %% "akka-stream" % "2.4.2", 
    // akka http 
    "com.typesafe.akka" %% "akka-http-core" % "2.4.2", 
    "com.typesafe.akka" %% "akka-http-experimental" % "2.4.2", 
    "com.typesafe.akka" %% "akka-http-testkit" % "2.4.2" % "test", 
    // the next one add only if you need Spray JSON support 
    "com.typesafe.akka" %% "akka-http-spray-json-experimental" % "2.4.2", 
    "org.scalatest" %% "scalatest" % "2.2.4" % "test") 
+0

謝謝。 然而奇怪的是'akka-http'仍然是實驗性的。 –

+1

我認爲這是因爲DSL有一些可能的變化 - 查看發佈新聞http://akka.io/news/2016/02/17/akka-2.4.2-released.html – lpiepiora

相關問題