Skip to content

A Kotlin compiler plugin that automatically makes every function/property inside an object static

License

Notifications You must be signed in to change notification settings

kyay10/kotlin-all-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

747cab9 · Oct 16, 2022

History

3 Commits
Oct 16, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022
Oct 16, 2022
Jun 18, 2022
Jun 18, 2022
Jun 18, 2022

Repository files navigation

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.

About

A Kotlin compiler plugin that automatically makes every function/property inside an object static

Resources

License

Stars

Watchers

Forks

Packages

No packages published