It works quite well in the 1.5 million code line application written in groovy that I work on.  I am sure Scala and Kotlin are nice languages, but groovy static compilation seems to work great in my experience.