Skip to content

Commit 8668b93

Browse files
Change grammar fetching from central maven to s3 (#1274) (#1276)
(cherry picked from commit 5790f17) Signed-off-by: Kai Huang <ahkcs@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent fee5a57 commit 8668b93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

project/GrammarDownload.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ object GrammarDownload {
1818

1919
// Add resolver for grammar downloads
2020
val grammarResolvers: Seq[MavenRepository] = Seq(
21-
"AWS OSS Sonatype Snapshots" at "https://central.sonatype.com/repository/maven-snapshots"
21+
"AWS OSS Sonatype Snapshots" at "https://ci.opensearch.org/ci/dbc/snapshots/maven"
2222
)
2323

2424
// Helper to find latest snapshot version and construct proper URL
2525
def findLatestSnapshotArtifactInfo(artifactId: String, version: String): (String, String) = {
26-
val metadataUrl = s"https://central.sonatype.com/repository/maven-snapshots/org/opensearch/$artifactId/$version/maven-metadata.xml"
26+
val metadataUrl = s"https://ci.opensearch.org/ci/dbc/snapshots/maven/org/opensearch/$artifactId/$version/maven-metadata.xml"
2727

2828
try {
2929
val metadata = XML.load(new URL(metadataUrl))
@@ -115,7 +115,7 @@ object GrammarDownload {
115115
log.info(s"Found latest snapshot version: $snapshotVersion")
116116

117117
// Download zip file
118-
val zipUrl = s"https://central.sonatype.com/repository/maven-snapshots/org/opensearch/$artifactId/$version/$artifactId-$snapshotVersion.zip"
118+
val zipUrl = s"https://ci.opensearch.org/ci/dbc/snapshots/maven/org/opensearch/$artifactId/$version/$artifactId-$snapshotVersion.zip"
119119
val zipFile = tempDir / s"$artifactId-$snapshotVersion.zip"
120120
log.info(s"Downloading grammar from $zipUrl")
121121
downloadFile(zipUrl, zipFile)

0 commit comments

Comments
 (0)