考虑我有一个名为的模块myservice
,其中包含子模块service1
和service2
myproject/
myservice/
/ service1
/com/sample/process
SomeFile1.scala
SomeFile11.scala
/endpoint
SomeFile13.scala
SomeFile111.scala
/ service2
/com/sample/mov
SomeFile2.scala
SomeFile21.scala
我将构建信息定义为:
lazy val service1 = project.in(file("myservice/service1"))
lazy val service2 = project.in(file("myservice/service2"))
lazy val root = (project in file(".")).
enablePlugins(BuildInfoPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "?" //What will be the package name here ?
)
Q1。我是否需要分别为每个模块启用 buildinfo 插件,如下所示?
Q2。如果是这样,这里的包裹是什么
lazy val service1 = project.in(file("myservice/service1"))
enablePlugins(BuildInfoPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "?" //What will be the package name here ?
)
lazy val service2 = project.in(file("myservice/service2"))
enablePlugins(BuildInfoPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "?" //What will be the package name here ?
)