Skip to content

Commit 5030720

Browse files
fix: use central for publishing (#1496)
1 parent 3e2edc4 commit 5030720

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

.github/maintainers_guide.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ Refer to the [README](https://github.com/slackapi/java-slack-sdk/blob/main/docs/
8989
* Make sure the account you are using has the permission to make releases [under com.slack groupId](https://central.sonatype.com/publishing/com.slack/users)
9090

9191
Place `$HOME/.m2/settings.xml` with your Sonatype account information.
92-
* Generate user token: https://central.sonatype.org/publish/generate-token/
93-
* Set the user token id/password: https://central.sonatype.org/publish/publish-manual/#signing-components
92+
* Generate user token: https://central.sonatype.org/publish/generate-portal-token/
93+
* Set the user token id/password: https://central.sonatype.org/publish/publish-portal-maven/#credentials
9494

9595
```xml
9696
<settings>
@@ -99,12 +99,7 @@ Place `$HOME/.m2/settings.xml` with your Sonatype account information.
9999
<server>
100100
<username>${your-username}</username>
101101
<password>${your-password}</password>
102-
<id>sonatype-nexus-staging</id>
103-
</server>
104-
<server>
105-
<username>${your-username}</username>
106-
<password>${your-password}</password>
107-
<id>sonatype-nexus-snapshots</id>
102+
<id>central</id>
108103
</server>
109104
</servers>
110105
<pluginGroups>

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
9494
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
9595
<maven-versions-plugin.version>2.8.1</maven-versions-plugin.version>
96-
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
96+
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
9797
<jacoco-maven-plugin.version>0.8.7</jacoco-maven-plugin.version>
9898
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
9999
<dokka.version>1.6.10</dokka.version>
@@ -271,14 +271,14 @@
271271
</configuration>
272272
</plugin>
273273
<plugin>
274-
<groupId>org.sonatype.plugins</groupId>
275-
<artifactId>nexus-staging-maven-plugin</artifactId>
276-
<version>${nexus-staging-maven-plugin.version}</version>
274+
<groupId>org.sonatype.central</groupId>
275+
<artifactId>central-publishing-maven-plugin</artifactId>
276+
<version>${central-publishing-maven-plugin.version}</version>
277277
<extensions>true</extensions>
278278
<configuration>
279-
<serverId>sonatype-nexus-staging</serverId>
280-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
281-
<stagingProgressTimeoutMinutes>20</stagingProgressTimeoutMinutes>
279+
<publishingServerId>central</publishingServerId>
280+
<autoPublish>true</autoPublish>
281+
<skipPublishing>false</skipPublishing> <!-- Set to true to perform a dry run without publishing -->
282282
</configuration>
283283
</plugin>
284284
<plugin>

scripts/release.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@ else
2828
deploy \
2929
-P production-releases \
3030
-D maven.test.skip=true \
31-
${exclusion} \
32-
nexus-staging:release
31+
${exclusion}
3332
fi

0 commit comments

Comments
 (0)