Skip to content

Commit aeb05ba

Browse files
authored
chore: publishing to new sonatype's repo (#2329)
1 parent 3255f2c commit aeb05ba

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/publish-maven.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,18 @@ cat <<EOF >~/.m2/settings.xml
3737
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
3838
<servers>
3939
<server>
40-
<id>ossrh</id>
40+
<id>maven-central-publishing</id>
4141
<username>${SONATYPE_USERNAME}</username>
4242
<password>${SONATYPE_PASSWORD}</password>
4343
</server>
4444
</servers>
4545
<profiles>
4646
<profile>
47-
<id>ossrh</id>
47+
<id>maven-central-publishing</id>
4848
<activation>
4949
<activeByDefault>true</activeByDefault>
5050
</activation>
5151
<properties>
52-
<altSnapshotDeploymentRepository>snapshots::default::https://s01.oss.sonatype.org/content/repositories/snapshots</altSnapshotDeploymentRepository>
5352
<gpg.passphrase>${PGP_PASSPHRASE}</gpg.passphrase>
5453
</properties>
5554
</profile>

maven-java/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,13 @@
9797
</executions>
9898
</plugin>
9999
<plugin>
100-
<groupId>org.sonatype.plugins</groupId>
101-
<artifactId>nexus-staging-maven-plugin</artifactId>
102-
<version>1.6.13</version>
100+
<groupId>org.sonatype.central</groupId>
101+
<artifactId>central-publishing-maven-plugin</artifactId>
102+
<version>0.8.0</version>
103103
<extensions>true</extensions>
104104
<configuration>
105-
<serverId>ossrh</serverId>
106-
<nexusUrl>https://central.sonatype.com</nexusUrl>
107-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
105+
<publishingServerId>central</publishingServerId>
106+
<autoPublish>true</autoPublish>
108107
</configuration>
109108
</plugin>
110109
<plugin>

0 commit comments

Comments
 (0)