It was expensive for Google and fighting them would destroy most companies. It’s cheaper to avoid the ecosystem entirely.
It was expensive for Google, but they’ve done the hard work of establishing the precedent. It’s much easier to fight when you have a strong binding precedent on your side.
I don’t have to fight if I just use something else. There is very little advantage to using Java when everything from .NET to Node to Ruby to Python are all super mature and have a similar amount of open source packages available. There might still be a question of performance and for that we have Go, Rust and elixir- not quite as mature but all still can do everything I need and then some.
As an added bonus, none of those frameworks have Larry Ellison lurking around the corner waiting to sue me if he decides to change the terms of license. Java is dead to me.