Where can i find the Gradle Kotlin DSL Documentation

Where can i find the Documentation for the Gradle Kotlin DSL.

For example:

  • i want to set a specific Port for my browserDevelopmentRun
    found @google: devServer = devServer?.copy(port = 8888) (But where is the documentation for that ? )
  • does the browserDevelopmentRun only accepts localhost: ?

Thanks