@@ -44,7 +44,7 @@ buildscript {
4444 mavenLocal()
4545 mavenCentral()
4646 maven { url " https://plugins.gradle.org/m2/" }
47- maven { url " https://central.sonatype.com/repository/maven- snapshots/" }
47+ maven { url " https://ci.opensearch.org/ci/dbc/ snapshots/maven /" }
4848 maven { url " https://artifacts.opensearch.org/snapshots/lucene/" }
4949 maven { url " https://build.shibboleth.net/nexus/content/groups/public" }
5050 maven { url " https://build.shibboleth.net/nexus/content/repositories/releases" }
@@ -420,10 +420,11 @@ publishing {
420420 repositories {
421421 maven {
422422 name = " Snapshots" // optional target repository name
423- url = " https://central.sonatype.com/repository/maven-snapshots/"
424- credentials {
425- username " $System . env . SONATYPE_USERNAME "
426- password " $System . env . SONATYPE_PASSWORD "
423+ url = System . getenv(" MAVEN_SNAPSHOTS_S3_REPO" )
424+ credentials(AwsCredentials ) {
425+ accessKey = System . getenv(" AWS_ACCESS_KEY_ID" )
426+ secretKey = System . getenv(" AWS_SECRET_ACCESS_KEY" )
427+ sessionToken = System . getenv(" AWS_SESSION_TOKEN" )
427428 }
428429 }
429430 }
@@ -433,7 +434,7 @@ repositories {
433434 mavenLocal()
434435 mavenCentral()
435436 maven { url " https://plugins.gradle.org/m2/" }
436- maven { url " https://central.sonatype.com/repository/maven- snapshots/" }
437+ maven { url " https://ci.opensearch.org/ci/dbc/ snapshots/maven /" }
437438 maven { url " https://artifacts.opensearch.org/snapshots/lucene/" }
438439 maven { url " https://build.shibboleth.net/nexus/content/repositories/releases" }
439440}
0 commit comments