Skip to content

Commit eda6d9d

Browse files
committed
Reorder the maven repositories to resolve the service unavailable issue
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent b3d3c5f commit eda6d9d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ buildscript {
6666

6767
repositories {
6868
mavenLocal()
69+
mavenCentral()
6970
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
7071
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/" }
71-
mavenCentral()
7272
}
7373

7474
dependencies {
@@ -92,10 +92,10 @@ apply plugin: 'opensearch.java-agent'
9292
// Repository on root level is for dependencies that project code depends on. And this block must be placed after plugins{}
9393
repositories {
9494
mavenLocal()
95-
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
96-
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/" }
9795
mavenCentral() // For Elastic Libs that you can use to get started coding until open OpenSearch libs are available
96+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
9897
maven { url 'https://jitpack.io' }
98+
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/" }
9999
}
100100

101101
spotless {
@@ -157,11 +157,10 @@ allprojects {
157157
subprojects {
158158
repositories {
159159
mavenLocal()
160-
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
161-
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/" }
162160
mavenCentral()
163-
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/lucene/" }
161+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
164162
maven { url 'https://jitpack.io' }
163+
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/" }
165164
}
166165
}
167166

0 commit comments

Comments
 (0)