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.

gradlePluginPortal

Adds a repository which looks in Gradle Central Plugin Repository for dependencies.

The return type of this method may be safely cast to org.gradle.api.artifacts.repositories.UrlArtifactRepository.

Return

The Gradle Central Plugin Repository

Since

4.4


Adds a repository which looks in Gradle Central Plugin Repository for dependencies.

The return type of this method may be safely cast to org.gradle.api.artifacts.repositories.UrlArtifactRepository.

Return

the added resolver

Since

5.4

Parameters

action

a configuration action