That's more to do with Spring, not Java. The compilation time of Java is infinitely faster than that of Rust.
Spring is one of most if not THE ubiquitous piece of Java software. All Java shop I worked for, had Spring
Comparing Spring+Java to Rust+Warp is imo fair game.
The dependency problem is a whole different issue. Hard to tackle, but it's one that must be solved.