jcenter

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"]
  }
}

Return

the added repository

Deprecated

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

Parameters

action

a configuration action


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()
}

Return

the added resolver

Deprecated

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

See also