# jcenter

abstract fun jcenter(action: Action<in MavenArtifactRepository>): MavenArtifactRepository

### Deprecated

Adds a repository which looks in Bintray's JCenter repository for dependencies.

The URL used to access this repository is "https://jcenter.bintray.com/". The behavior of this repository is otherwise the same as those added by maven.

Examples:

    repositories {
      jcenter {
        artifactUrls = ["http://www.mycompany.com/artifacts1", "http://www.mycompany.com/artifacts2"]
      }
      jcenter {
        name = "nonDefaultName"
        artifactUrls = ["http://www.mycompany.com/artifacts1"]
      }
    }

Content copied to clipboard

#### Return

the added repository

#### Deprecated

JFrog announced JCenter's sunset in February 2021. Use mavenCentral instead.

#### Parameters

action

a configuration action

abstract fun jcenter(): MavenArtifactRepository

### Deprecated

Adds a repository which looks in Bintray's JCenter repository for dependencies.

The URL used to access this repository is "https://jcenter.bintray.com/". The behavior of this repository is otherwise the same as those added by maven.

Examples:

    repositories {
        jcenter()
    }

Content copied to clipboard

#### Return

the added resolver

#### Deprecated

JFrog announced JCenter's sunset in February 2021. Use mavenCentral instead.

#### See also

jcenter(Action)