Add task dependencies in the .sbt file
2 answers
From https://github.com/harrah/xsbt/wiki/Tasks
To depend on the side effect of some tasks without using their values โโand without additional work, use dependOn for the task sequence. The defining task key (the part to the left of <<=) must be of type Unit, since no value is returned.
unitTask <<= Seq(stringTask, sampleTask).dependOn
To add dependencies to an existing task without using their values, call the dependOn function on the task and provide the dependent tasks. For example, the second task definition here modifies the original by requiring the task-string and sample-task to be executed first:
intTask := 4 intTask <<= intTask.dependsOn(stringTask, sampleTask)
+2
source to share