Skip to content

Commit 9624da4

Browse files
committed
Add CI mirror to plugin and dependency repositories to avoid Maven Central throttling
Signed-off-by: Divya Madala <divyaasm@amazon.com>
1 parent 9ab5038 commit 9624da4

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ buildscript {
5555

5656
repositories {
5757
mavenLocal()
58+
maven { url = "https://ci.opensearch.org/maven2/" }
5859
mavenCentral()
5960
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" }
6061
}
@@ -79,6 +80,7 @@ apply plugin: 'opensearch.java'
7980
// Repository on root level is for dependencies that project code depends on. And this block must be placed after plugins{}
8081
repositories {
8182
mavenLocal()
83+
maven { url = "https://ci.opensearch.org/maven2/" }
8284
mavenCentral() // For Elastic Libs that you can use to get started coding until open OpenSearch libs are available
8385
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" }
8486
maven { url 'https://jitpack.io' }
@@ -130,6 +132,7 @@ allprojects {
130132
subprojects {
131133
repositories {
132134
mavenLocal()
135+
maven { url = "https://ci.opensearch.org/maven2/" }
133136
mavenCentral()
134137
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" }
135138
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/lucene/" }

settings.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
*/
55

66

7+
pluginManagement {
8+
repositories {
9+
maven { url = uri("https://ci.opensearch.org/maven2/") }
10+
gradlePluginPortal()
11+
mavenCentral()
12+
}
13+
}
14+
715
rootProject.name = 'opensearch-sql'
816

917
include 'opensearch-sql-plugin'

0 commit comments

Comments
 (0)