Skip to content

Commit

Permalink
Use mavencentral instead of jcenter (#77883)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
breskeby committed Sep 20, 2021
1 parent 33e6bd0 commit a6b27fc
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ jar {
*****************************************************************************/

repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ class BuildPlugin implements Plugin<Project> {
name "elastic"
url "https://artifacts-no-kpi.elastic.co/maven"
}
repos.jcenter()
repos.mavenCentral()
String luceneVersion = VersionProperties.lucene
if (luceneVersion.contains('-snapshot')) {
// extract the revision number from the version with a regex matcher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class VagrantTestPlugin implements Plugin<Project> {
private static void configurePackagingArchiveRepositories(Project project) {
RepositoryHandler repos = project.repositories

repos.jcenter() // will have releases before 5.0.0
repos.mavenCentral() // 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 {
jcenter()
mavenCentral()
repositories {
maven {
name "local-repo"
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 @@ -12,7 +12,7 @@ ext.licenseFile = file("$buildDir/dummy/license")
ext.noticeFile = file("$buildDir/dummy/notice")

repositories {
jcenter()
mavenCentral()
repositories {
maven {
name "local"
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/testKit/testclusters/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ allprojects { all ->
url "https://s3.amazonaws.com/download.elasticsearch.org/lucenesnapshots/" + luceneSnapshotRevision
}
}
jcenter()
mavenCentral()
}

if (project == rootProject || project.name == "alpha" || project.name == "bravo") {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/testKit/testingConventions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ allprojects {
apply plugin: 'elasticsearch.build'

repositories {
jcenter()
mavenCentral()
}
dependencies {
testCompile "junit:junit:4.12"
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/testKit/thirdPartyAudit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
name = "local-test"
url = file("sample_jars/build/testrepo")
}
jcenter()
mavenCentral()
}

configurations.create("forbiddenApisCliJar")
Expand Down

0 comments on commit a6b27fc

Please sign in to comment.