Skip to content

Commit 7f7670e

Browse files
authored
fix: change to central publishing (#205)
change to central publishing
1 parent 88ab816 commit 7f7670e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.github/workflows/release-please.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
distribution: 'zulu'
3737
java-version: 17
38-
server-id: ossrh
38+
server-id: central
3939
server-username: MAVEN_USERNAME
4040
server-password: MAVEN_PASSWORD
4141
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Full private key blob
@@ -63,7 +63,7 @@ jobs:
6363
with:
6464
distribution: 'zulu'
6565
java-version: 17
66-
server-id: ossrh
66+
server-id: central
6767
server-username: MAVEN_USERNAME
6868
server-password: MAVEN_PASSWORD
6969
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Full private key blob

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ To use a snapshot, add the following repository to your `pom.xml`:
2424
```xml
2525
<distributionManagement>
2626
<snapshotRepository>
27-
<id>oss.snapshots</id>
28-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
27+
<id>central-portal-snapshots</id>
28+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
2929
</snapshotRepository>
3030
</distributionManagement>
3131
```

pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
<distributionManagement>
1414
<snapshotRepository>
15-
<id>ossrh</id>
16-
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
15+
<id>central-portal-snapshots</id>
16+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
1717
</snapshotRepository>
1818
<repository>
19-
<id>ossrh</id>
20-
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
19+
<id>central-portal</id>
20+
<url>https://central.sonatype.com/repository/maven-releases/</url>
2121
</repository>
2222
</distributionManagement>
2323

@@ -364,14 +364,14 @@
364364
</executions>
365365
</plugin>
366366
<plugin>
367-
<groupId>org.sonatype.plugins</groupId>
368-
<artifactId>nexus-staging-maven-plugin</artifactId>
369-
<version>1.6.13</version>
367+
<groupId>org.sonatype.central</groupId>
368+
<artifactId>central-publishing-maven-plugin</artifactId>
369+
<version>0.8.0</version>
370370
<extensions>true</extensions>
371371
<configuration>
372-
<serverId>ossrh</serverId>
373-
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
374-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
372+
<publishingServerId>central</publishingServerId>
373+
<autoPublish>true</autoPublish>
374+
<waitUntil>published</waitUntil>
375375
</configuration>
376376
</plugin>
377377
</plugins>

0 commit comments

Comments
 (0)