That's more a CI issue than a build tool issue. Just about any (Java) build tool supports incremental compilation. But if your CI env doesn't have a place to cache those builds, it's not going to matter.
And even then it could be a matter of seconds on a smallish codebase. Nor everyone is building Google sized monorepos.