2016-03-21 10 views
3

私はTypesafe/Lightbend Activatorを使用していて、「minimal-akka-scala-seed」というプロジェクトを作成しました。その後、akkaバージョンを2.3.11から2.4.2(現在の安定バージョン)に変更しました。 今、最新の安定したAkka-HTTPとAkka-streamをプロジェクトに追加したいと思います。これを行うにはbuild.sbtで何を書きますか?最新のAkka-HTTPとAkka-streamを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

関連する問題