I do not mean that Gradle should provide IDE support, I mean that API of software types properties which declared by plugin author, should be able to express more complex restrictions for fields than we can do now with language types, it can be done with annotations, same as software type is declared
Maybe something like
https://www.baeldung.com/spring-validate-requestparam-pathvariable
It could be a list of built-in annotations, but also some way to link validator class for property content
Just an example, things like valid port range or docker container name restrictions now cannot be expressed without starting actual configuration. Now all those are checked on configuration time, so plugin user set value, sync, got gradle error, no typing assistance.
The only way to do this, is to allow plugin authors declare it on level of DSL (which is now will be generated by declarative gradle), so IDE can use this data to help user before they synced project, while typing, it will be IDE feature, just using data from Gradle Plugin, thanks for restricted DSL declaration system
As a bonus it allows Gradle itself to validate config during configuration validate properties values and separate simple validation logic from business logic of the plugin