Would it be possible to have a way to declare a “soft” dependency between tasks. What I’m getting at is that if taskA has a soft dependency on taskB, taskA would always run after taskB, but running taskA wouldn’t require taskB to run.
My use case for this is test and integTest tasks. Since they don’t have a dependency between them they run in alphabetical order which means my integration tests run before the unit tests. I’d rather only run integration tests if the unit tests succeed, but still have the option to run integration tests separately (without having to explicitly exclude them).
If you have any other ideas on how best to handle this, I’d appreciate it.