abstract fun jcenter(action: Action<in MavenArtifactRepository>): MavenArtifactRepository
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(org.gradle.api.Action)
.
Examples:
repositories { jcenter { artifactUrls = ["http://www.mycompany.com/artifacts1", "http://www.mycompany.com/artifacts2"] } jcenter { name = "nonDefaultName" artifactUrls = ["http://www.mycompany.com/artifacts1"] } }
action
- a configuration action
Return
the added repository
abstract fun jcenter(): MavenArtifactRepository
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(org.gradle.api.Action)
.
Examples:
repositories { jcenter() }
Return
the added resolver
See Also
#jcenter(Action)