Skip to content

Commit

Permalink
Workaround lagom#2192
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasi35 committed Sep 4, 2019
1 parent 184066a commit a30882f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -24,6 +24,9 @@ lazy val `hello-impl` = (project in file("hello-impl"))
//#couchbase-begin
"com.lightbend.akka" %% "lagom-scaladsl-persistence-couchbase" % "1.0",
//#couchbase-end
// An explicit dependency to lagom-scaladsl-projection is required to
// workaround https://github.com/lagom/lagom/issues/2192
"com.lightbend.lagom" %% "lagom-scaladsl-projection" % "1.6.0-M5",
lagomScaladslTestKit,
macwire,
scalaTest
Expand Down
Expand Up @@ -7,6 +7,7 @@ import com.lightbend.lagom.scaladsl.persistence.couchbase.CouchbasePersistenceCo
import com.lightbend.lagom.scaladsl.server._
import com.softwaremill.macwire._
import com.lightbend.lagom.sampleshello.api.HelloService
import com.lightbend.lagom.scaladsl.projection.ProjectionComponents
import play.api.libs.ws.ahc.AhcWSComponents

class HelloLoader extends LagomApplicationLoader {
Expand All @@ -27,6 +28,9 @@ abstract class HelloApplication(context: LagomApplicationContext)
//#couchbase-begin
with CouchbasePersistenceComponents
//#couchbase-end
// The ProjectionsComponents must be mixed-in after XyzPersistenceComponents
// as a workaround for https://github.com/lagom/lagom/issues/2192
with ProjectionComponents
with AhcWSComponents {

override lazy val lagomServer = serverFor[HelloService](wire[HelloServiceImpl])
Expand Down

0 comments on commit a30882f

Please sign in to comment.