Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 1.64 KB

README.md

File metadata and controls

19 lines (15 loc) · 1.64 KB

kotlin-all-static

Maven Central (Compiler plugin) Maven Central (Gradle Plugin)

Gradle Plugin Portal

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.