It’s actually a problem of plugins. I hope more and more plugins drop such dynamic approach and Groovy magic.
Maybe with a new tutorial from Gradle team about writing plugins, that are friendly to Groovy and Kotlin at the same time situation will be better. And I think community can help with contribution or reporting issues to plugin authors
But for now you have to understand how plugins and gradle work.