Skip to content

Commit cee022a

Browse files
committed
Swithc to jcenter and hope to have fewer network failures in builds (elastic#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
1 parent d2f2505 commit cee022a

File tree

6 files changed

+4
-7
lines changed

6 files changed

+4
-7
lines changed

buildSrc/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ if (project == rootProject) {
145145
if (System.getProperty("repos.mavenLocal") != null) {
146146
mavenLocal()
147147
}
148-
mavenCentral()
149148
}
150149
test {
151150
include "**/*Tests.class"

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ class BuildPlugin implements Plugin<Project> {
443443
// such that we don't have to pass hardcoded files to gradle
444444
repos.mavenLocal()
445445
}
446-
repos.mavenCentral()
446+
repos.jcenter()
447447
repos.maven {
448448
name "elastic"
449449
url "https://artifacts.elastic.co/maven"

buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ class VagrantTestPlugin implements Plugin<Project> {
159159
private static void configurePackagingArchiveRepositories(Project project) {
160160
RepositoryHandler repos = project.repositories
161161

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

165164
/* Setup a repository that tries to download from
166165
https://artifacts.elastic.co/downloads/elasticsearch/[module]-[revision].[ext]

buildSrc/src/testKit/elasticsearch.build/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
}
1414

1515
repositories {
16-
mavenCentral()
16+
jcenter()
1717
repositories {
1818
maven {
1919
url System.getProperty("local.repo.path")

buildSrc/src/testKit/jarHell/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext.licenseFile = file("$buildDir/dummy/license")
1313
ext.noticeFile = file("$buildDir/dummy/notice")
1414

1515
repositories {
16-
mavenCentral()
16+
jcenter()
1717
repositories {
1818
maven {
1919
url System.getProperty("local.repo.path")

qa/wildfly/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ final String wildflyInstall = "${buildDir}/wildfly/wildfly-${wildflyVersion}"
3535
int managementPort
3636

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

0 commit comments

Comments
 (0)