Created
February 18, 2015 16:26
-
-
Save HerringtonDarkholme/7c6867138d9133c9524b to your computer and use it in GitHub Desktop.
creating a task which depends on another task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
barTask := { println("tests ran!") } | |
barTask <<= barTask.dependsOn(test in Test) | |
lazy val project = Project(id = "Foo", base = file("."), | |
settings = Seq(afterTestTask1, afterTestTask2)) | |
val afterTestTask1 = barTask := { println("tests ran!") } | |
val afterTestTask2 = barTask <<= barTask.dependsOn(test in Test) | |
lazy val project = Project(id = "Foo", base = file("."), | |
settings = Seq(afterTestTask)) | |
val afterTestTask = barTask <<= (test in Test) map { _ => println("tests ran!") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment