2016-03-21 49 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

相关问题