Typesafe/Lightbend Activator kullanıyorum ve 'minimal-akka-scala-seed' ile bir proje oluşturdum. Sonra akka versiyonunu 2.3.11'den 2.4.2'ye değiştirdim (mevcut kararlı versiyon). Şimdi projeme en yeni sabit Akka-HTTP ve Akka-stream eklemek istiyorum. Bunu yapmak için build.sbt'de ne yazmalıyım?En yeni Akka-HTTP ve Akka-stream, build.sbt'ye nasıl eklenir
3
A
cevap
2
Bazı yapay nesneler artık 2.4.2
sürümü ile deneysel olarak işaretlenmez.
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")
1
Kontrolü Bu örnekte https://github.com/theiterators/akka-http-microservice:
Ben bağımlılık listesi aşağıdaki gibi görünmelidir ki inanıyoruz. En yeni akka-http
sürüm
'u kullanın. Teşekkür ederim. Ancak 'akka-http' hala deneysel olduğu garip. –
Bunun sebebi, DSL için bazı olası değişikliklerin var olmasıdır - sürüm haberlerine göz atın http://akka.io/news/2016/02/17/akka-2.4.2-released.html – lpiepiora