For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

disconnect

abstract fun disconnect()(source)

Disconnects all ProjectConnection instances created by this connector.

Calling this method tries to do a best effort to clean up resources used by the tooling API. It tries to cancel any builds and shut down running daemons.

After calling disconnect, creating new project connections will be rejected and the existing ones created by this instance will also deny future build operations.

Since

6.5