Swithc to jcenter and hope to have fewer network failures in builds (#35427)

* Swithc to jcenter

Jcenter suposedly operates on a CDN.
It should be faster and more reliable.
It's the default in Andorid Studio currently
( it switched from mavenCentral ).

This change is safe because jcenter is a superset of mavenCentral.

* update comment
This commit is contained in:
Alpar Torok 2018-11-14 10:50:08 +02:00 committed by GitHub
parent 31567cefb4
commit b49f461bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 7 deletions

View File

@ -142,7 +142,6 @@ if (project == rootProject) {
if (System.getProperty("repos.mavenLocal") != null) { if (System.getProperty("repos.mavenLocal") != null) {
mavenLocal() mavenLocal()
} }
mavenCentral()
} }
test { test {
include "**/*Tests.class" include "**/*Tests.class"

View File

@ -442,7 +442,7 @@ class BuildPlugin implements Plugin<Project> {
// such that we don't have to pass hardcoded files to gradle // such that we don't have to pass hardcoded files to gradle
repos.mavenLocal() repos.mavenLocal()
} }
repos.mavenCentral() repos.jcenter()
repos.maven { repos.maven {
name "elastic" name "elastic"
url "https://artifacts.elastic.co/maven" url "https://artifacts.elastic.co/maven"

View File

@ -159,8 +159,7 @@ class VagrantTestPlugin implements Plugin<Project> {
private static void configurePackagingArchiveRepositories(Project project) { private static void configurePackagingArchiveRepositories(Project project) {
RepositoryHandler repos = project.repositories RepositoryHandler repos = project.repositories
// Try maven central first, it'll have releases before 5.0.0 repos.jcenter() // will have releases before 5.0.0
repos.mavenCentral()
/* Setup a repository that tries to download from /* Setup a repository that tries to download from
https://artifacts.elastic.co/downloads/elasticsearch/[module]-[revision].[ext] https://artifacts.elastic.co/downloads/elasticsearch/[module]-[revision].[ext]

View File

@ -13,7 +13,7 @@ dependencies {
} }
repositories { repositories {
mavenCentral() jcenter()
repositories { repositories {
maven { maven {
url System.getProperty("local.repo.path") url System.getProperty("local.repo.path")

View File

@ -13,7 +13,7 @@ ext.licenseFile = file("$buildDir/dummy/license")
ext.noticeFile = file("$buildDir/dummy/notice") ext.noticeFile = file("$buildDir/dummy/notice")
repositories { repositories {
mavenCentral() jcenter()
repositories { repositories {
maven { maven {
url System.getProperty("local.repo.path") url System.getProperty("local.repo.path")

View File

@ -35,7 +35,6 @@ final String wildflyInstall = "${buildDir}/wildfly/wildfly-${wildflyVersion}"
int managementPort int managementPort
repositories { repositories {
mavenCentral()
// the Wildfly distribution is not available via a repository, so we fake an Ivy repository on top of the download site // the Wildfly distribution is not available via a repository, so we fake an Ivy repository on top of the download site
ivy { ivy {
url "http://download.jboss.org" url "http://download.jboss.org"