I have a play framework project which has a client library as a submodule. I'm using flyway for database migrations. When I use a command for flyway (such as
In the project doing the aggregating, the root project in this case, you can control aggregation per-task. For example, to avoid aggregating the update task:
lazy val root = (project in file(".")). aggregate(util, core). settings( aggregate in update := false )
In your case, set
aggregate in flywayMigrate := false instead. To do this just once,
sbt "; set aggregate in (ThisBuild, flywayMigrate) := false; root/flywayMigrate"