Skip to content

Instantly share code, notes, and snippets.

@suls
Created July 24, 2013 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suls/6068364 to your computer and use it in GitHub Desktop.
Save suls/6068364 to your computer and use it in GitHub Desktop.
sample sbt task
object Build extends sbt.Build {
lazy val fooUtil = Project(
// ..
)
val sample = TaskKey[Unit]("sample-task")
val sampleTask = sample := {
println("in sample-task")
(unmanagedSourceDirectories in (fooUtil, Compile)) map {(ds: Seq[java.io.File]) =>
println(ds.mkString(", "))
}
println("sample-task done ..")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment