scala - How to alias a sequence of tasks? -
i have custom tasks in sbt (0.12.2) project. let's call them a
, b
, c
. when i'm in interactive mode of sbt can type a
, task associated a
executed. can type ;a;b;c
, 3 tasks executed in sequence; same way ;clean;compile
do. can interactive shell create alias run them all: alias all=;a;b;c
. when type all
tasks executed in obvious manner. i'm trying achieve creating alias inside of sbt configuration project.
this section of sbt documentation deals tasks, achieve this:
lazy val = taskkey[unit]("a", "does a") lazy val b = taskkey[unit]("b", "does b") lazy val c = taskkey[unit]("c", "does c") lazy val = taskkey[unit]("all", ";a;b;c") lazy val tasksettings = seq( <<= seq(a,b,c).dependon )
the problem have approach tasks combined , execution happens in parallel in contrast sequential, i'm trying achieve. how can create alias alias all=;a;b;c
inside of sbt configuration file?
i've been looking same thing , found this request easy way of aliasing , the commit provides one: addcommandalias
.
in build.sbt
have:
addcommandalias("go", ";container:start;~copy-resources")
as might guess, writing go
in console run longer command sequence me.