diff --git a/User-Stories:-Build-Level.md b/User-Stories:-Build-Level.md index ad1cb1f..26acf7b 100644 --- a/User-Stories:-Build-Level.md +++ b/User-Stories:-Build-Level.md @@ -43,3 +43,11 @@ addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0") When she launches sbt, sbt-idea is not loaded automatically. When she launches sbt with `sbt.buildLevel=+idea`, the plugin is loaded. + +## User Story: Scaling down the build down to minimal + +User splits up her `*.sbt` into `compile.sbt`, `test.sbt`, and `publish.sbt`, `project/plugins.sbt` into `compile.sbt`, `test.sbt` and `publish.sbt` each set to an appropriate `buildLevel`. + +When she launches sbt with `sbt.buildLevel=compile` (notice no `+` sign in front of `compile`), only the setting sets scoped in `compile` are loaded. `compile` includes all built-in settings. + +When she launches sbt with `sbt.buildLevel=compile,publish`, only the setting sets scoped in `compile` and `publish` are loaded.