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.

IdeaWorkspace

abstract class IdeaWorkspace(source)

Deprecated

Will be removed in Gradle 10.

Enables fine-tuning workspace details (*.iws file) of the IDEA plugin.

At the moment, the only practical way of manipulating the resulting content is via the withXml hook:

plugins {
    id 'java'
    id 'idea'
}

idea.workspace.iws.withXml { provider ->
    provider.asNode().appendNode('gradleRocks', 'true')
}

Since

1.0

Constructors

Link copied to clipboard
@Inject
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun iws(@DelegatesTo(value = XmlFileContentMerger::class) closure: Closure)
open fun iws(action: Action<in XmlFileContentMerger>)
Enables advanced manipulation of the output XML.
Link copied to clipboard
open fun mergeXmlWorkspace(xmlWorkspace: Workspace)
Merge xml workspace.