How to do it...

For this recipe, we need to perform the following steps:

  1. First, we need to define the new two modules in our build.sbt file. Open build.sbt and add the following modules at the end of the file:
        lazy val `trip-api` = (project in file("trip-api"))          .settings(            libraryDependencies ++= Seq(              lagomScaladslApi            )          )        lazy val `trip-impl` = (project in file("trip-impl"))          .enablePlugins(LagomScala)          .settings(            libraryDependencies ++= Seq(              lagomScaladslPersistenceCassandra,              lagomScaladslTestKit,              macwire,              scalaTest            )          )          .settings(lagomForkedTestSettings: _*)          .dependsOn(`trip-api`)
  1. Second, we need to add both to the aggregate of the project. In build.sbt, update the following to list our two new modules as well:
        lazy val `akkacookbook` ...

Get Akka Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.