# gradlePluginPortal

abstract fun gradlePluginPortal(): ArtifactRepository

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

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