Skip to content

Commit 6b66e6b

Browse files
committed
Migrate Maven Central
1 parent cd83af4 commit 6b66e6b

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
java-version: 17
2828
distribution: 'zulu'
29-
server-id: ossrh
29+
server-id: central
3030
server-username: SONATYPE_USERNAME
3131
server-password: SONATYPE_PASSWORD
3232
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}

pom.xml

+4-19
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,12 @@
148148
</plugin>
149149

150150
<plugin>
151-
<groupId>org.sonatype.plugins</groupId>
152-
<artifactId>nexus-staging-maven-plugin</artifactId>
153-
<version>1.6.12</version>
151+
<groupId>org.sonatype.central</groupId>
152+
<artifactId>central-publishing-maven-plugin</artifactId>
153+
<version>0.7.0</version>
154154
<extensions>true</extensions>
155155
<configuration>
156-
<serverId>ossrh</serverId>
157-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
158-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
156+
<publishingServerId>central</publishingServerId>
159157
</configuration>
160158
</plugin>
161159
</plugins>
@@ -196,19 +194,6 @@
196194
</profile>
197195
</profiles>
198196

199-
<distributionManagement>
200-
<snapshotRepository>
201-
<id>ossrh</id>
202-
<name>Sonatype Nexus Snapshots</name>
203-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
204-
</snapshotRepository>
205-
<repository>
206-
<id>ossrh</id>
207-
<name>Nexus Release Repository</name>
208-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
209-
</repository>
210-
</distributionManagement>
211-
212197
<dependencies>
213198
<dependency>
214199
<groupId>org.jetbrains.kotlin</groupId>

0 commit comments

Comments
 (0)