In a multi-module build with a sub module server I have written a custom task in server/build.sbt in which I would like to reference the baseDirectory of the 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 like (baseDirectory in root).value but this doesn't work. Any suggestions?
(baseDirectory in LocalRootProject).value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With