2
sbt提供了许多不同的configurationsCompile
,Test
,Runtime
等。默认情况下,Test
取决于Runtime
和Runtime
取决于Compile
,这意味着Test
取决于Compile
。使默认sbt配置依赖于另一个
在我的项目中,我添加了一个自定义配置,我们称之为Generators
。我想使Generators
取决于Compile
,因此Test
取决于Generators
。
实例化Generators配置时,可以轻松实现这一点。
lazy val Generators = config("generators") extend(Runtime)
有没有一种方法,使Test
取决于Generators
因为Test
为SBT提供。是否可以修改或以某种方式覆盖?