That's just bizarre. And so far removed from my experience I'm genuinely surprised.
I've never had a gradle build that didn't manage to remember I've only just compiled the code and haven't changed any of it. I can't remember ever having a maven build that could tell I didn't need to compile every single time. And the same the whole of the way down the stack.
Nice attempt to imply gradle isn't declarative though.