在编译/测试操作中强制在依赖项目中进行组装

时间:2021-05-27 11:13:24

标签: scala sbt

让我们考虑一下组件 build.sbt 的一块 A

lazy val A_project = project
  .in(file("."))
  .dependsOn("some_component_B" % "compile->compile")  
  .dependsOn("some_component_C" % "compile->assembly")  

我想达到以下场景。当我从 testOnly 处输入 A_project 时,它会在 sbt assembly 动作自动触发 some_component_C。目前,它不起作用。

0 个答案:

没有答案
相关问题