(Compiler plugin) (Gradle Plugin)
A Kotlin compiler plugin that automatically makes every function and property under an object static. In other words, it applies the @JvmStatic
annotation to every property or function under an object
or companion object
Use with care! Note: This plugin was created using Brian Norman's Kotlin IR Plugin Template and from guidance from his wonderful article series Writing Your Second Kotlin Compiler Plugin ( seriously like the articles were immensely helpful when I just knew absolutely nothing about IR) and it was created originally as part of the discussion on KotlinLang Slack: Spock Testing: Is it possible to make kotlin use @JvmStatic by default for generated methods to support the OP's use-case.