在lagom 文档中定义服务描述时,我定义了如下服务:
lazy val userApi = project("user-api")
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies += lagomJavadslApi
)
lazy val userImpl = project("user-impl")
.enablePlugins(LagomJava)
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(
lagomJavadslPersistence,
lagomJavadslTestKit
)
)
.settings(lagomForkedTestSettings: _*)
.dependsOn(userApi)
但是在使用目录结构构建activator
或未创建时。sbt
user-api/src/main/java
user-impl/src/main/java