In build.sbt
toplevel:
val ourBashScriptExtraDefines = Seq(
// In some cases you might want to use ++=, e.g. for stacking settings
bashScriptExtraDefines := List(...) // Docs for sbt-native-packager say "List"
)
А затем при определении проекта в build.sbt
:
lazy val project1 = (project in file("path/to/project1"))
.settings(ourBashScriptExtraDefines ++ Seq(
//project-specific settings
))