For this recipe, we need to perform the following steps:
- 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 `consumer-api` = (project in file("consumer-api")) .settings( libraryDependencies ++= Seq( lagomScaladslApi ) ) lazy val `consumer-impl` = (project in file("consumer-impl")) .enablePlugins(LagomScala) .settings( libraryDependencies ++= Seq( lagomScaladslPersistenceCassandra, lagomScaladslTestKit, macwire, scalaTest ) ) .settings(lagomForkedTestSettings: _*) .dependsOn(`consumer-api`,`token-api`)
- Second, we need to add both modules consumer-api and consumer-impl to the aggregate of the project. In build.sbt, update the ...