File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -226,12 +226,11 @@ publish_snapshots_and_update_metadata() {
226
226
local current_version=" $1 "
227
227
local commit_id=" $2 "
228
228
229
- # Get credentials to upload files directly
230
- export SONATYPE_USERNAME=$( aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
231
- export SONATYPE_PASSWORD=$( aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
229
+ # Credentials are already loaded from 1Password via environment variables
230
+ # SONATYPE_USERNAME and SONATYPE_PASSWORD are set by the GitHub Actions workflow
232
231
echo " ::add-mask::$SONATYPE_USERNAME "
233
232
echo " ::add-mask::$SONATYPE_PASSWORD "
234
- export SNAPSHOT_REPO_URL=" https://aws.oss. sonatype.org/content/repositories/ snapshots/"
233
+ export SNAPSHOT_REPO_URL=" https://central. sonatype.com/repository/maven- snapshots/"
235
234
236
235
# Make a temp directory for publish-snapshot.sh
237
236
mkdir -p build/resources/publish/
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ object GrammarDownload {
18
18
19
19
// Add resolver for grammar downloads
20
20
val grammarResolvers : Seq [MavenRepository ] = Seq (
21
- " AWS OSS Sonatype Snapshots" at " https://aws.oss. sonatype.org/content/repositories/ snapshots"
21
+ " AWS OSS Sonatype Snapshots" at " https://central. sonatype.com/repository/maven- snapshots"
22
22
)
23
23
24
24
// Helper to find latest snapshot version and construct proper URL
25
25
def findLatestSnapshotArtifactInfo (artifactId : String , version : String ): (String , String ) = {
26
- val metadataUrl = s " https://aws.oss. sonatype.org/content/repositories/ snapshots/org/opensearch/ $artifactId/ $version/maven-metadata.xml "
26
+ val metadataUrl = s " https://central. sonatype.com/repository/maven- snapshots/org/opensearch/ $artifactId/ $version/maven-metadata.xml "
27
27
28
28
try {
29
29
val metadata = XML .load(new URL (metadataUrl))
@@ -115,7 +115,7 @@ object GrammarDownload {
115
115
log.info(s " Found latest snapshot version: $snapshotVersion" )
116
116
117
117
// Download zip file
118
- val zipUrl = s " https://aws.oss. sonatype.org/content/repositories/ snapshots/org/opensearch/ $artifactId/ $version/ $artifactId- $snapshotVersion.zip "
118
+ val zipUrl = s " https://central. sonatype.com/repository/maven- snapshots/org/opensearch/ $artifactId/ $version/ $artifactId- $snapshotVersion.zip "
119
119
val zipFile = tempDir / s " $artifactId- $snapshotVersion.zip "
120
120
log.info(s " Downloading grammar from $zipUrl" )
121
121
downloadFile(zipUrl, zipFile)
You can’t perform that action at this time.
0 commit comments