In our project we are using hexagonal architecture with a domain module and many smaller modules that all depend on it (subproject setup in gradle). As the project has grown it seems compile times in IDEA (possibly also in gradle) slows to a crawl for 30 - 180 seconds as it seems to recompile the world constantly. Even for simple changes. Does anyone have any good approach that works better than what I have described ?