How to override upToDate behaviour cargoStartLocal

I’m using Benjamin Muschko’s cargo plugin. I’m calling cargoStartLocal before running my integrationTest and cargoStopLocal afterwards.

However when integrationTest is UP-TO-DATE, I don’t want to call cargoStartLocal or cargoStopLocal.

I tried to wire integrationTest’s input and output to cargoStartLocal’s in- and output, but that doesn’t work because every cargo task specifies it’s never upToDate (see

Is there a way to overwrite this behaviour or what would be the nicest solution to only run cargoStart/StopLocal when the integrationTest is not up to date anymore?