What is included in JCenter repository in Gradle?

前端 未结 4 1674
情书的邮戳
情书的邮戳 2020-12-07 16:57

From Gradle 1.7 there is new Public repository JCenter.

repositories {  
   jcenter()  
}

So I want to ask if all jars fr

4条回答
  •  囚心锁ツ
    2020-12-07 17:49

    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.

提交回复
热议问题