From Gradle 1.7 there is new Public repository JCenter.
repositories {
jcenter()
}
So I want to ask if all jars from Maven Central are parts of this repo? And if not from what is JCenter repo consists of? And is JCenter more reliable from Maven Central as downtime?
As mentioned in https://bintray.com/bintray/jcenter :
Also I find a good compare at https://www.jfrog.com/knowledge-base/why-should-i-use-jcenter-over-maven-central/
Maven Central and JCenter are mostly equivalent, from a user perspective.
The reason there's 2 big repos is that Maven Central is backed by Sonatype, the company behind Maven and especially behind Nexus, a Maven repository they sell to enterprises.
JCenter is backed by JFrog, the company behind Artifactory, a competitor to Nexus. From what I remember JFrog also backed Gradle for a while, as a competitor to Maven.
So in the end it's about competing companies offering free services to try to lure customers to their higher level enterprise offerings.
Unless you have a very specific reason to use one of them, you can basically toss a coin to choose one.
jcenter()
is similar tomavenCentral()
. Have a look at https://bintray.com/bintray/jcenter for more details. The jCenter guys claim that they have a better performance than Maven Central.