# gradlePluginPortal

abstract fun gradlePluginPortal(): ArtifactRepository(source)

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

abstract fun gradlePluginPortal(action: Action<in ArtifactRepository>): ArtifactRepository(source)

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