如何使用sbt从2个包中创建1个子项目?

时间:2018-03-01 03:14:13

标签: sbt sbt-assembly

我定义了2个子项目来为2个包创建2个罐子。我可以创建1个子项目,下面有2个包吗?谢谢

//subproject for domain package so that AWS lambda can consume the jar
lazy val domainProject = (project in file("domain"))
  .enablePlugins(AssemblyPlugin)
  .settings(assemblyJarName in assembly := "domainPackage.jar")

//subproject for util package so that AWS lambda can consume the jar
lazy val utilProject = (project in file("util"))
  .enablePlugins(AssemblyPlugin)
  .settings(assemblyJarName in assembly := "utilPackage.jar")
  .dependsOn(domainProject)

1 个答案:

答案 0 :(得分:0)

您已经有一个聚合domainProject和utilProject的根项目。 如果你想拥有更深层次的项目层次结构,那么我也要求(在Is it possible to manage a hierarchical product structure in SBT which has more than just one level?中) - 这是不可能的....