How It Works
This tool converts Gradle build scripts from Groovy to Kotlin DSL (KTS - Kotlin Script) format. It's designed to assist developers in modernizing their Android projects by facilitating the migration from Groovy-based Gradle files to the more type-safe and IDE-friendly Kotlin DSL.
- Input your Groovy-based Gradle code into the editor on the left.
- The tool automatically processes and converts your code.
- View the converted Kotlin KTS code in the output field on the right.
- Use the copy button to transfer the converted code to your clipboard.
While this converter handles most common Gradle constructs effectively, please note that complex or custom configurations may require manual adjustments post-conversion.
Developed in 2019, this tool filled a crucial gap in the Android development ecosystem, predating both the widespread adoption of Kotlin KTS and the availability of official conversion tools. It has since been refined through valuable contributions from the developer community. If you encounter any issues or have suggestions for improvement, please submit them on our GitHub repository.