Skip to content

Commit 2dbd2ab

Browse files
committed
build: deploy via central
1 parent 2345103 commit 2dbd2ab

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

pom.xml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@
5050
</developer>
5151
</developers>
5252

53-
<distributionManagement>
54-
<snapshotRepository>
55-
<id>ossrh</id>
56-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
57-
</snapshotRepository>
58-
</distributionManagement>
59-
6053
<issueManagement>
6154
<url>https://github.com/AlmasB/FXGL/issues</url>
6255
<system>GitHub Issues</system>
@@ -77,7 +70,7 @@
7770

7871
<!-- plugins -->
7972
<maven.gpg.version>1.6</maven.gpg.version>
80-
<sonatype.nexus.staging.version>1.6.13</sonatype.nexus.staging.version>
73+
<central.publishing.version>0.8.0</central.publishing.version>
8174
<maven.compiler.version>3.13.0</maven.compiler.version>
8275
<maven.pmd.version>3.26.0</maven.pmd.version>
8376
<maven.license.version>3.0</maven.license.version>
@@ -314,16 +307,16 @@
314307
</executions>
315308
</plugin>
316309

317-
<!-- Upload to sonatype nexus / maven central -->
310+
<!-- Upload to maven central -->
311+
318312
<plugin>
319-
<groupId>org.sonatype.plugins</groupId>
320-
<artifactId>nexus-staging-maven-plugin</artifactId>
321-
<version>${sonatype.nexus.staging.version}</version>
313+
<groupId>org.sonatype.central</groupId>
314+
<artifactId>central-publishing-maven-plugin</artifactId>
315+
<version>${central.publishing.version}</version>
322316
<extensions>true</extensions>
323317
<configuration>
324-
<serverId>ossrh</serverId>
325-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
326-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
318+
<publishingServerId>central</publishingServerId>
319+
<autoPublish>true</autoPublish>
327320
</configuration>
328321
</plugin>
329322

0 commit comments

Comments
 (0)