a lazy answer (untested) <https://github.com/bernaferrari/GradleKotlinConverter>
r