Updated User Stories: Build Level (markdown)

eugene yokota 2016-01-01 17:21:34 -05:00
parent 84110d1251
commit 7b93d7dad7
1 changed files with 3 additions and 3 deletions

@ -5,7 +5,7 @@ This document outlines the desired use cases of BuildLevel feature.
User splits up her `*.sbt` into `compile.sbt`, `test.sbt`, and `publish.sbt`. Here's `test.sbt`:
```scala
buildLevel in ThisSet := test
buildLevel in ThisScript := test
libraryDependency += "org.specs2" %% "specs2" % "2.3.10" % "test"
```
@ -19,7 +19,7 @@ When she launches sbt with `sbt.buildLevel=-test`, any settings written in `tess
User splits up her `project/plugins.sbt` into `compile.sbt`, `test.sbt` and `publish.sbt`. Here's `project/publish.sbt`:
```scala
buildLevel in ThisSet := publish
buildLevel in ThisScript := publish
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.20.0")
```
@ -35,7 +35,7 @@ When she launches sbt with `sbt.buildLevel=-publish`, the plugin is no longer lo
User splits up her `~/.sbt/0.13/plugins/plugins.sbt` into `idea.sbt` etc. Here's `~/.sbt/0.13/plugins/idea.sbt`:
```scala
buildLevel in ThisSet := BuildLevel(name = "idea", optional = true)
buildLevel in ThisScript := BuildLevel(name = "idea", optional = true)
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
```