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