In a multi-module assembly with an additional server module, I wrote a custom task in server/build.sbt in which I would like to reference the baseDirectory root project. Here is the task:
lazy val genData = taskKey[Unit]("generate files") genData := { List( Generator(baseDirectory.value.getParentFile, (resourceDirectory in Compile).value) ).foreach(_.makeData()) }
Instead of baseDirectory.value.getParentFile I would like to write somehing as (baseDirectory in root).value , but this will not work. Any suggestions?
source share