Add a compile time only sub-project dependency in sbt

后端 未结 2 2082
情深已故
情深已故 2021-02-06 10:19

I have a multi-project contains a private macro sub-project which\'s usage is limited to implement method body of other sub-projects. Neither should it be on the runtime classpa

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 11:00

    val lib = Project("lib", file("lib")).dependsOn(macro % "compile-internal") 
    

    Just had this discussion last night...

提交回复
热议问题