okay, I'm looking at <https://guides.gradle.org/migrating-build-logic-from-groovy-to-kotlin/>, and it says
Use of the
plugins {}
block to declare Gradle plugins significantly improves the editing experience, and is highly recommended. Consider adopting it in your Groovy build scripts before converting them to Kotlin.