Skip to content

Commit b812fd2

Browse files
build(release): migrate from ossrh to central
1 parent b1ade2f commit b812fd2

File tree

4 files changed

+14
-26
lines changed

4 files changed

+14
-26
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ replace = {new_version}
1818
[bumpversion:file:text-to-speech/README.md]
1919

2020
[bumpversion:file:docker/pom.xml]
21+
22+
[bumpversion:file:.github/workflows/deploy.yml]

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ jobs:
8686
- name: Publish to Maven Central
8787
env:
8888
GHA_TAG: "refs/tags/v14.0.2" # for setMavenVersion_gha
89-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} # for .travis.settings.xml
90-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
89+
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }} # for .travis.settings.xml
90+
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
9191
GPG_KEYNAME: ${{ secrets.SIGNING_KEY }}
9292
GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
9393
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} # for setupSigning_gha

build/.travis.settings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
44
<servers>
55
<server>
6-
<id>ossrh</id>
7-
<username>${env.OSSRH_USERNAME}</username>
8-
<password>${env.OSSRH_PASSWORD}</password>
6+
<id>central</id>
7+
<username>${env.CENTRAL_USERNAME}</username>
8+
<password>${env.CENTRAL_PASSWORD}</password>
99
</server>
1010
</servers>
1111
</settings>

pom.xml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<surefire-version>3.0.0-M3</surefire-version>
2828
<jacoco-plugin-version>0.8.5</jacoco-plugin-version>
2929
<maven-deploy-plugin-version>3.0.0-M1</maven-deploy-plugin-version>
30-
<nexus-staging-plugin-version>1.6.8</nexus-staging-plugin-version>
30+
<central-publishing-plugin-version>0.7.0</central-publishing-plugin-version>
3131
<maven-gpg-plugin-version>1.6</maven-gpg-plugin-version>
3232
<maven-source-plugin-version>3.1.0</maven-source-plugin-version>
3333
<maven-shade-plugin-version>3.2.2</maven-shade-plugin-version>
@@ -191,9 +191,9 @@
191191
<version>${maven-deploy-plugin-version}</version>
192192
</plugin>
193193
<plugin>
194-
<groupId>org.sonatype.plugins</groupId>
195-
<artifactId>nexus-staging-maven-plugin</artifactId>
196-
<version>${nexus-staging-plugin-version}</version>
194+
<groupId>org.sonatype.central</groupId>
195+
<artifactId>central-publishing-maven-plugin</artifactId>
196+
<version>${central-publishing-plugin-version}</version>
197197
</plugin>
198198
<plugin>
199199
<groupId>org.apache.maven.plugins</groupId>
@@ -470,28 +470,14 @@
470470
<!-- For this profile, we'll get dependencies from maven central -->
471471
<repositories></repositories>
472472

473-
<distributionManagement>
474-
<snapshotRepository>
475-
<!-- We don't deploy snapshot releases -->
476-
</snapshotRepository>
477-
<repository>
478-
<!-- This is where the nexus staging plugin will publish artifacts -->
479-
<id>ossrh</id>
480-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
481-
</repository>
482-
</distributionManagement>
483-
484473
<build>
485474
<plugins>
486475
<plugin>
487-
<groupId>org.sonatype.plugins</groupId>
488-
<artifactId>nexus-staging-maven-plugin</artifactId>
476+
<groupId>org.sonatype.central</groupId>
477+
<artifactId>central-publishing-maven-plugin</artifactId>
489478
<extensions>true</extensions>
490479
<configuration>
491-
<serverId>ossrh</serverId>
492-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
493-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
494-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
480+
<publishingServerId>central</publishingServerId>
495481
</configuration>
496482
</plugin>
497483
<plugin>

0 commit comments

Comments
 (0)