Our current build.sbt
spanns 250+ lines.
We have two problems:
current approach grouping of data and comments:
// Plugins ///////////////////////////////////////////////////
enablePlugins(DockerPlugin)
// basic configuration : projects ///////////////////////////
name := """projectName"""
lazy val projectName =
(project in file(".")).....
We have some configuration logic we would like to share between different projects.
Is there a way to include other *.sbt
files?
Or do you have a suggestion how to solve this problem without resorting to write a sbt plugin?
*.sbt
files?Yes, you can simply put parts of your build.sbt
file into other *.sbt
files within your project root. SBT picks up all *.sbt
files and merges them together, as there was only a single large file.
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