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.

getNamespace

@Nullable
abstract fun getNamespace(): @Nullable String(source)

The namespace of the plugin.

An example of a plugin namespace would be "org.gradle" for the plugin with ID "org.gradle.java". This method always returns the namespace, regardless of whether the fully qualified ID was used to apply the plugin or not.

If the plugin has an unqualified ID, this method will return null.

Return

the namespace of the plugin

Since

2.3