Skip to content

Commit a6b27fc

Browse files
authored
Use mavencentral instead of jcenter (#77883)
jcenter is sunset and regular having stability issues. This should fix our 6.8 branch. We also change our public available plugins to use mavencentral instead of jcenter
1 parent 33e6bd0 commit a6b27fc

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed

buildSrc/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ jar {
109109
*****************************************************************************/
110110

111111
repositories {
112-
jcenter()
112+
mavenCentral()
113+
maven {
114+
url "https://plugins.gradle.org/m2/"
115+
}
113116
}
114117

115118
dependencies {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class BuildPlugin implements Plugin<Project> {
605605
name "elastic"
606606
url "https://artifacts-no-kpi.elastic.co/maven"
607607
}
608-
repos.jcenter()
608+
repos.mavenCentral()
609609
String luceneVersion = VersionProperties.lucene
610610
if (luceneVersion.contains('-snapshot')) {
611611
// extract the revision number from the version with a regex matcher

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

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

161-
repos.jcenter() // will have releases before 5.0.0
161+
repos.mavenCentral() // will have releases before 5.0.0
162162

163163
/* Setup a repository that tries to download from
164164
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-
jcenter()
16+
mavenCentral()
1717
repositories {
1818
maven {
1919
name "local-repo"

buildSrc/src/testKit/jarHell/build.gradle

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

1414
repositories {
15-
jcenter()
15+
mavenCentral()
1616
repositories {
1717
maven {
1818
name "local"

buildSrc/src/testKit/testclusters/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ allprojects { all ->
1616
url "https://s3.amazonaws.com/download.elasticsearch.org/lucenesnapshots/" + luceneSnapshotRevision
1717
}
1818
}
19-
jcenter()
19+
mavenCentral()
2020
}
2121

2222
if (project == rootProject || project.name == "alpha" || project.name == "bravo") {

buildSrc/src/testKit/testingConventions/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ allprojects {
77
apply plugin: 'elasticsearch.build'
88

99
repositories {
10-
jcenter()
10+
mavenCentral()
1111
}
1212
dependencies {
1313
testCompile "junit:junit:4.12"

buildSrc/src/testKit/thirdPartyAudit/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
name = "local-test"
1818
url = file("sample_jars/build/testrepo")
1919
}
20-
jcenter()
20+
mavenCentral()
2121
}
2222

2323
configurations.create("forbiddenApisCliJar")

0 commit comments

Comments
 (0)