@@ -25,7 +25,7 @@ buildscript {
2525
2626 repositories {
2727 mavenLocal()
28- maven { url " https://aws.oss.sonatype. org/content/repositories /snapshots" }
28+ maven { url " https://ci.opensearch. org/ci/dbc /snapshots/maven/ " }
2929 mavenCentral()
3030 maven { url " https://plugins.gradle.org/m2/" }
3131 }
@@ -132,10 +132,11 @@ publishing {
132132 repositories {
133133 maven {
134134 name = " Snapshots"
135- url = " https://aws.oss.sonatype.org/content/repositories/snapshots"
136- credentials {
137- username " $System . env . SONATYPE_USERNAME "
138- password " $System . env . SONATYPE_PASSWORD "
135+ url = System . getenv(" MAVEN_SNAPSHOTS_S3_REPO" )
136+ credentials(AwsCredentials ) {
137+ accessKey = System . getenv(" AWS_ACCESS_KEY_ID" )
138+ secretKey = System . getenv(" AWS_SECRET_ACCESS_KEY" )
139+ sessionToken = System . getenv(" AWS_SESSION_TOKEN" )
139140 }
140141 }
141142 }
@@ -187,15 +188,15 @@ allprojects {
187188}
188189
189190repositories {
190- mavenLocal()
191- maven { url " https://aws.oss.sonatype. org/content/repositories /snapshots" }
192- mavenCentral()
193- maven { url " https://plugins.gradle.org/m2/" }
191+ mavenLocal()
192+ maven { url " https://ci.opensearch. org/ci/dbc /snapshots/maven/ " }
193+ mavenCentral()
194+ maven { url " https://plugins.gradle.org/m2/" }
194195}
195196
196197ext {
197198 getSecurityPluginDownloadLink = { ->
198- var repo = " https://aws.oss.sonatype. org/content/repositories /snapshots/org/opensearch/plugin/" +
199+ var repo = " https://ci.opensearch. org/ci/dbc /snapshots/maven /org/opensearch/plugin/" +
199200 " opensearch-security/$opensearch_build_snapshot /"
200201 var metadataFile = Paths . get(projectDir. toString(), " build" , " maven-metadata.xml" ). toAbsolutePath(). toFile()
201202 download. run {
0 commit comments