在构建期间修改unmanagedSourceDirectories中的文件

时间:2018-02-20 00:09:43

标签: scala sbt multi-module

我有一个多模块SBT项目,它在第一个模块期间将源写入unmanagedSourceDirectories,然后在以后的模块中使用这些内容(此过程重复)。项目结构如下所示:

root
  + gen - writes content to useA/target/generated-sources
  + useA - writes content to useB/target/generated-sources
  + useB - writes content to useC/target/generated-sources
  + etc....

unmanagedSourceDirectories定义如下

root
  + gen
  + useA - unmanagedSourceDirectories=useA/target/generated-sources
  + useB - unmanagedSourceDirectories=useB/target/generated-sources
  + etc...

有没有办法实现我想要的目标?

0 个答案:

没有答案