
foojay · 5 min readJava & Kotlin
Trading maintenance branches for build complexity
Migrating a Java 21 plugin to support Java 8 required abandoning many maintenance branches and adopting Kotlin with AI‑assisted conversion, plus a flexible Gradle build that swaps legacy source files at compile time. The approach consolidates releases into a single branch while handling API differences across platform versions.
- Converted Java code to Kotlin using AI, enabling a single source base targeting Java 8 bytecode.
- Implemented a Gradle build that overlays legacy Kotlin files for older platform APIs during compilation.
- Reduced branch overhead and PR approval friction by centralizing changes in one branch despite added build complexity.