Skip to content

Commit da71231

Browse files
chore(release): Migrate release to Central Portal (#468)
1 parent 99077dc commit da71231

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

cfn/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ Resources:
189189
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Maven-GPG-Keys-CI-Credentials-eBrSNB",
190190
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Github/aws-crypto-tools-ci-bot-AGUB3U",
191191
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Sonatype-User-Token-zK61bM",
192+
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Sonatype-Central-Portal-XrYUs2",
192193
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Maven-GPG-Keys-Release-haLIjZ",
193194
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Maven-GPG-Keys-Release-Credentials-WgJanS"
194195
],

codebuild/release/release-prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
secrets-manager:
1111
GPG_KEY: Maven-GPG-Keys-Release-Credentials:Keyname
1212
GPG_PASS: Maven-GPG-Keys-Release-Credentials:Passphrase
13-
SONA_USERNAME: Sonatype-User-Token:username
14-
SONA_PASSWORD: Sonatype-User-Token:password
13+
SONA_USERNAME: Sonatype-Central-Portal:Username
14+
SONA_PASSWORD: Sonatype-Central-Portal:Password
1515

1616
phases:
1717
install:

codebuild/release/settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SPDX-License-Identifier: Apache-2.0
1313
<password>${codeartifact.token}</password>
1414
</server>
1515
<server>
16-
<id>sonatype-nexus-staging</id>
16+
<id>central</id>
1717
<username>${sonatype.username}</username>
1818
<password>${sonatype.password}</password>
1919
</server>

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@
308308

309309
<distributionManagement>
310310
<snapshotRepository>
311-
<id>sonatype-nexus-staging</id>
312-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
311+
<id>central</id>
312+
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
313313
</snapshotRepository>
314314
</distributionManagement>
315315

@@ -336,13 +336,13 @@
336336
</executions>
337337
</plugin>
338338
<plugin>
339-
<groupId>org.sonatype.plugins</groupId>
340-
<artifactId>nexus-staging-maven-plugin</artifactId>
341-
<version>1.6.13</version>
339+
<groupId>org.sonatype.central</groupId>
340+
<artifactId>central-publishing-maven-plugin</artifactId>
341+
<version>0.7.0</version>
342342
<extensions>true</extensions>
343343
<configuration>
344-
<serverId>sonatype-nexus-staging</serverId>
345-
<nexusUrl>https://aws.oss.sonatype.org</nexusUrl>
344+
<publishingServerId>central</publishingServerId>
345+
<autoPublish>true</autoPublish>
346346
</configuration>
347347
</plugin>
348348
</plugins>

0 commit comments

Comments
 (0)