sbt.buildLevel=compile

eugene yokota 2014-03-23 13:17:40 -07:00
parent 15d6057dcb
commit f56fae41d7
1 changed files with 8 additions and 0 deletions

@ -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.