SBT Test-Dependencies in Multiprojects: Make the Test-Code Available to Dependent Projects

前端 未结 2 686
忘了有多久
忘了有多久 2020-12-07 13:03

I\'ve a SBT multi-project where some projects have dependencies to each other. Like this:

 lazy val coreProject: Project = Project(
    id = \"core-project\"         


        
2条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 13:52

    Like so:

    dependencies = Seq(coreProject % "compile->compile;test->test")
    

    This is discussed in the section "Per-configuration classpath dependencies" in then Getting-Started-Multi-Project guide.

提交回复
热议问题