Skip to content

Instantly share code, notes, and snippets.

@chemikadze
Created June 21, 2013 13:32
Show Gist options
  • Save chemikadze/5831142 to your computer and use it in GitHub Desktop.
Save chemikadze/5831142 to your computer and use it in GitHub Desktop.
SBT snippets
// create new task
lazy val myPlugin = TaskKey[Unit]("my-plugin")
lazy val myPluginTask = Seq(
myPlugin := (),
myPlugin <<= myPlugin.dependsOn(someTask in someProject),
)
// depend one task on another
xxx
.settings(
someTask <<= someTask.dependsOn(myPlugin in otherProject)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment