Add an example of Hello world in sbt to make it not clear to people new to sbt that the only way to define a task is in Scala. If they don't read the details they miss that point.

schubert 2012-07-20 07:26:18 -07:00
parent f8160f66a4
commit fbdd32549e
1 changed files with 11 additions and 1 deletions

@ -41,7 +41,17 @@ expression in a [[build.sbt|Getting Started Basic Def]].
# Defining a New Task
## Hello World example
## Hello World example (sbt)
build.sbt
```scala
TaskKey[Unit]("hello") := println("hello world!")
```
## Hello World example (scala)
project/Build.scala