I have 2 sbt subproject, one is a CLI, one is a sbt plugin.
The sbt plugin will try to download at execution time the CLI. We have an implicit dependency here. The tests for the sbt plugin (implemented thanks to the sbt-scripted plugin) requires the CLI to be published locally.
I usually run sbt +cli/publishLocal +plugin/scripted
.
How can I make this task dependency explicit in sbt so everytime i run plugin/scripted
it runs first cli/publishLocal
first?
(FYI project source is here https://github.com/thibaultdelor/CliAppSbtPlugin)