at first glance I don't see why in the long term the Kotlin DSL could not support:
Copy code
plugins {
id "application"
}
Basically the IDE would have to ask the Tooling API what is the build script class path. Granted it would require a refresh to get the types available, but should be possilb.e