Skip to content

Commit

Permalink
Swithc to jcenter and hope to have fewer network failures in builds (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
alpar-t committed Nov 14, 2018
1 parent d2f2505 commit cee022a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ if (project == rootProject) {
if (System.getProperty("repos.mavenLocal") != null) {
mavenLocal()
}
mavenCentral()
}
test {
include "**/*Tests.class"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class BuildPlugin implements Plugin<Project> {
// such that we don't have to pass hardcoded files to gradle
repos.mavenLocal()
}
repos.mavenCentral()
repos.jcenter()
repos.maven {
name "elastic"
url "https://artifacts.elastic.co/maven"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ class VagrantTestPlugin implements Plugin<Project> {
private static void configurePackagingArchiveRepositories(Project project) {
RepositoryHandler repos = project.repositories

// Try maven central first, it'll have releases before 5.0.0
repos.mavenCentral()
repos.jcenter() // will have releases before 5.0.0

/* Setup a repository that tries to download from
https://artifacts.elastic.co/downloads/elasticsearch/[module]-[revision].[ext]
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/testKit/elasticsearch.build/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies {
}

repositories {
mavenCentral()
jcenter()
repositories {
maven {
url System.getProperty("local.repo.path")
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/testKit/jarHell/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext.licenseFile = file("$buildDir/dummy/license")
ext.noticeFile = file("$buildDir/dummy/notice")

repositories {
mavenCentral()
jcenter()
repositories {
maven {
url System.getProperty("local.repo.path")
Expand Down
1 change: 0 additions & 1 deletion qa/wildfly/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ final String wildflyInstall = "${buildDir}/wildfly/wildfly-${wildflyVersion}"
int managementPort

repositories {
mavenCentral()
// the Wildfly distribution is not available via a repository, so we fake an Ivy repository on top of the download site
ivy {
url "http://download.jboss.org"
Expand Down

0 comments on commit cee022a

Please sign in to comment.