How to force the task to be not up-to-date if buildSrc build was not up-to-date?

How to force the task to be not up-to-date if buildSrc build was not up-to-date?

I don’t think there’s a way, currently.

This is GRADLE-2936.