From f56fae41d7ac4177e1b20c0ee1b23f93fbec4878 Mon Sep 17 00:00:00 2001 From: eugene yokota Date: Sun, 23 Mar 2014 13:17:40 -0700 Subject: [PATCH] sbt.buildLevel=compile --- User-Stories:-Build-Level.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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.