From fbdd32549e01e5dc35acb85ca98dd31983504f25 Mon Sep 17 00:00:00 2001 From: schubert Date: Fri, 20 Jul 2012 07:26:18 -0700 Subject: [PATCH] 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. --- Detailed-Topics/Tasks.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Detailed-Topics/Tasks.md b/Detailed-Topics/Tasks.md index d0bae8b..af35a81 100644 --- a/Detailed-Topics/Tasks.md +++ b/Detailed-Topics/Tasks.md @@ -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